in reply to Re^2: Perl and Cookies
in thread Perl and Cookies
That's not a great way to do session IDs. There are a few reasonably reliable ways:
In either case, save only the session ID in a cookie (or, if you prefer {and are willing to do a little extra work}, you can pass it in the URL and not use cookies at all). In the sessions table, store an expiration time; each time you check for a valid session, you can update the expiration (unless, of course, the session has already expired).
This seems to be the best approach short of implementing some kind of full-featured auth scheme on the server side.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Perl and Cookies
by blogical (Pilgrim) on Mar 06, 2006 at 22:20 UTC | |
|
Re^4: Perl and Cookies
by pajout (Curate) on Mar 07, 2006 at 09:27 UTC | |
by radiantmatrix (Parson) on Mar 07, 2006 at 14:57 UTC | |
by pajout (Curate) on Mar 07, 2006 at 16:03 UTC |