in reply to CGI::Session --help
The first way is to drop a cookie, and this method won't allow you to do what you ask. For a given domain+browser a cookie is 'shared' so all of your tabs in Firefox will be getting the same login/logout status. This is often what's wanted anyway, but not in your example.
The other method is to preserve the session ID by passing it from page to page as a parameter in the URL. So, your login creates a session ID, and then your scripts need to ensure that each page keeps passing it on via the URL. This would enable you to do what you want. There's info in the CGI::Session tutorial about this.
Note that this second method has the disadvantage of always 'forgetting' each user entirely after logout, whereas using a cookie means a user's session ID can be made available to be re-used on their next login.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: CGI::Session --help
by moritz (Cardinal) on Aug 28, 2007 at 11:34 UTC | |
by oxone (Friar) on Aug 28, 2007 at 12:06 UTC | |
by moritz (Cardinal) on Aug 28, 2007 at 12:16 UTC | |
by Anonymous Monk on Aug 29, 2007 at 04:13 UTC |