Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
Hi all

Just wondering if this is possible:

I want to use htaccess to authenticate different users.  What I would then
like to do is use the username from the htaccess box to set the session id
of the pages.  Furthermore, I would like to use this to keep a check on
whether a user is logged in when they hit a page.  This is so that I can
deliver content appropriate for each user.  This is an existing project
where htaccess is being used.  I'm just writing a backend for my customer so
that their clients can log fault calls.

Is this possible?


Re: .htaccess/PHP

Quoted text here. Click to load it

You are searching for $_SERVER["REMOTE_USER"]

Marco Dieckhoff
icq# 22243433
GPG Key 0x1A6C95BA -- http://www.frankonia-brunonia.de/keys

Re: .htaccess/PHP

Marco Dieckhoff wrote:

Quoted text here. Click to load it

More info:


Justin Koivisto - spam@koivi.com

Re: .htaccess/PHP

On 9/12/04 12:39 pm, in article 9ltl82-88h.ln1@hamlet.frbr.etc.tu-bs.de,

Quoted text here. Click to load it

Bingo!  Thanks for that.


Re: .htaccess/PHP

On Thu, 9 Dec 2004 11:40:44 +0000 (UTC), Andy Jacobs

Quoted text here. Click to load it

You can call the session ID pretty much whatever you like.

use something like:


on the page where the session is initiated.


Site Timeline