psk79 0 Newbie Poster

Hi all,

I created a set of pages with PHP for login using a database. Now, I
need to
link to a lot of CGI programs in a folder with protected-access
(.htaccess). The
username and password are the same as the ones people use to login
with. Is there a way to use the session usrname/password for the HTTP
authentication to that folder ?? If I remove the .htaccess for that
particular folder, then all those files will have access without any
kind of authentication.

I tried username:passw...@www.example.com . But this doesnt work with
IE 6. So I need something else.

Or is there any server/env /session variable that can be checked in the
beginning of these CGI programs or redirect to login page. This way I
can add a line in all those cgi programs to check whether a variable is
set or not. And remove the .htaccess file.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.