in reply to CGI Session information

A web "session" mechanism always works the same way: a cookie and/or part of the URL string contains a randomly-generated identifier which is used as the primary key of a session-information table containing whatever data the server wishes to store. It's usually a good idea for that information to include the primary-keys of other tables, such as info about who is logged on and even ("in the bigger scheme of things") what that "person" is currently doing. There are gobs of session-handling modules in CPAN, with thorough descriptions of how they work.

Replies are listed 'Best First'.
Re^2: CGI Session information
by Anonymous Monk on Jul 09, 2012 at 22:05 UTC
    A web "session" mechanism always works the same way: a cookie and/or part of the URL string contains a randomly-generated identifier which is used as the primary key of a session-information table containing whatever data the server wishes to store. It's usually a good idea for that information to include the primary-keys of other tables, such as info about who is logged on and even ("in the bigger scheme of things") what that "person" is currently doing. There are gobs of session-handling modules in CPAN, with thorough descriptions of how they work. http://methoo.com