Don't ask to ask, just ask | |
PerlMonks |
Re: Implementing Cookiesby tune (Curate) |
on Nov 20, 2001 at 01:15 UTC ( [id://126386]=note: print w/replies, xml ) | Need Help?? |
I used to generate a session ID for my users, and store them in a database table. Also send this ID to the cookie.
And the database table can contain any type of information, with the ID, the client's IP address, the timestamp. In this way I can track if the session is expired, or still active, and e.g. show a list of active users, for the user community. --
In Section
Seekers of Perl Wisdom
|
|