Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Implementing Cookies

by tune (Curate)
on Nov 20, 2001 at 01:15 UTC ( [id://126386]=note: print w/replies, xml ) Need Help??


in reply to Implementing Cookies

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.

--
tune

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://126386]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2024-04-19 23:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found