Page 1 of 1

Cookies? Or other alternatives for Permanent or Temp Logins?

Posted: Tue Dec 10, 2002 12:15 am
by Sunthas
I would like to do a permanent or temporary login for a website via name and password and I think I have to use cookies to do this. I have started reading about cookies but I was wondering if there was another easier way or if anyone know good spots to read about how to implement this sort of thing.

Thanks,

Posted: Tue Dec 10, 2002 3:54 pm
by Sunthas
Any thoughts?

Posted: Tue Dec 10, 2002 4:26 pm
by qads
use sessions, look them up at http://www.php.net and some tuts..some good ones are at http://www.hotscripts.com

good luck.

Posted: Tue Dec 10, 2002 4:53 pm
by JPlush76
for autologin features you have to use cookies. then read the cookie on the login page to see if the data exists.

cookies are VERY easy to use and it shouldn't take long to get ahold of the concept.

one key thing to remember is you can set a cookie and read it from the same page

IE:

set cookie

read cookie

the cookie will be available on the next page load.