Page 1 of 1

sync .htaccess with php session

Posted: Wed Nov 22, 2006 4:47 pm
by dwighttttt
is there any way to sync a php session with .htaccess? specifically, i would like users to log in through a php login screen and be able to avoid getting a login prompt for folders that are protected with .htaccess. i imagine a possible solution would be to set a server variable via php when a user logs in, have .htaccess check the same variable, and redirect accordingly.

i've done quite a bit of research but to no avail. can anyone tell me if this is even possible?

thanks

dshl

Posted: Wed Nov 22, 2006 5:20 pm
by feyd
Last I saw, no.

You could use PHP as an interface into the directory thereby removing the need for .htaccess protected functionality, at least in the HTTP authentication sense.