Cookies? Or other alternatives for Permanent or Temp Logins?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Sunthas
Forum Newbie
Posts: 9
Joined: Sun Dec 08, 2002 12:43 am

Cookies? Or other alternatives for Permanent or Temp Logins?

Post 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,
Sunthas
Forum Newbie
Posts: 9
Joined: Sun Dec 08, 2002 12:43 am

Post by Sunthas »

Any thoughts?
qads
DevNet Resident
Posts: 1199
Joined: Tue Apr 23, 2002 10:02 am
Location: Brisbane

Post 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.
JPlush76
Forum Regular
Posts: 819
Joined: Thu Aug 01, 2002 5:42 pm
Location: Los Angeles, CA
Contact:

Post 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.
Post Reply