[PHP] Allowing user login, but NOT requiring?

2001-11-21 Thread Nelson Goforth
In my project I have basic HTML pages with PHP/MySQL driven content. In a subdirectory I have pages that allow users to change the content of the pages and other administrative functions. This subdirectory is protected with Apache mod_auth. What I would like to do is allow authorized users

Re: [PHP] Allowing user login, but NOT requiring?

2001-11-21 Thread Mark
using apache to do the authorization is the cheap and easy way. If you want something more advanced you should use a cookie. There's probably tons of sample code on phpbuilder.com On Wed, 21 Nov 2001 11:30:49 -0700, Nelson Goforth wrote: In my project I have basic HTML pages with PHP/MySQL

Re: [PHP] Allowing user login, but NOT requiring?

2001-11-21 Thread Fred
I agree, if you want to do anything special with logins do not rely on htaccess, write your own auth scripts. On the other hand, I would not recommend using cookies either, unless it is in conjuntion with sessions. PHP has great session management funtions and they should be used at the

Re: [PHP] Allowing user login, but NOT requiring?

2001-11-21 Thread Mark
Yes, but unless you're doing something like a shopping cart, php sessions are probably overkill. For this all that he needs to do is have a login box that checks to see if the username/password are ok, and saves them in a cookie if they are. then at the top of every script you load the user's