Page 1 of 1
HtAccess
Posted: Wed Jan 29, 2003 6:41 pm
by Nik
how can i show up a windows that prompts the user for username and password before he enters my php page??
Posted: Wed Jan 29, 2003 9:52 pm
by fractalvibes
You could do this programtically - have a link to your login page, when they succesfully login, set a session variable. Check this session variable at the top of each page you want protected and accessible only to those
who are logged in - redirect to the login page if that check turns up false....
Something else to look at :
http://javascriptkit.com/howto/htaccess.shtml
a pretty good intro to htaccess that may give you some other clues, specifically
http://javascriptkit.com/howto/htaccess3.shtml
Hope that helps,
Phil J.
Posted: Thu Jan 30, 2003 3:52 am
by Nik
Yes the url's helped a lot! Thank you very much!