go ahead... be a heretic | |
PerlMonks |
Re: How to remember who is logged in...by JaWi (Hermit) |
on Sep 03, 2002 at 15:28 UTC ( [id://194794]=note: print w/replies, xml ) | Need Help?? |
Hi!
Indeed there are many ways you can solve this problem. One of the approaches I used for a site was the following.
Each time the user returns to your site, you check wheter he still has the cookie. If so, you're (fairly) certain the user has come back and continues browsing your site. Logging out can be done by resetting/deleting the cookie (after the user has pressed a `logout' link or automatically after a preset time). Of course this is a very simple approach of remembering users (and might not be sufficient in some cases), but I hope it gives you an idea! Greets, -- JaWi
In Section
Seekers of Perl Wisdom
|
|