[Phplib-users] Re: Default Auth? 7.2d
Brought to you by:
nhruby,
richardarcher
From: Darryl M. <dar...@op...> - 2002-02-26 13:15:48
|
Hello All, I've just started to follow this thread of discussion about Default Authentication and was having similar difficulty myself in coming up with an elegant solution to my dilema which sounds similar to what a few of you are experiencing. Basically I wanted a website that had a menu along the top to access items such as forums, articles, files etc and also a menu down the lefthand side with a login form in this menu. Once the user logs in he/she can access the protected pages but also view the non protected pages with a personalised welcome message. I tried to use the Default Auth method as suggested by Chris however when my login page is posted no authentication occurs even though the globals $username and $password are present in the HTTP vars. It seems like I'll have to send a flag/hidden field from the login page to say I want to auth the user now and change the page_open() on each page to include authorisation. Not sure what other way you could go about this. Does anybody else have any suggestions? While I was writing this I thought it'd be good if there was a permissions of 'all' so if a user with uid of 'nobody' entered the site and came across a page that had permissions of 'all' they could acess it however if they hit a page of 'user' or 'admin' then they'd be taken to a page that says you don't have permissions to acess that page and asks you to login. Anybody else have any thoughts on this? Regards Darryl |