Octavian Rasnita wrote:
Hi,

Maybe I didn't understand well the question, but if the user wants to create a session that works only in a certain window, but doesn't work in the other windows, a simple cookie can be used if its expiry date is set to 0.

This way the cookie won't be saved, but it will be memorised by the current window of the browser, and if the browser window is closed, the session ID is lost, and the user must log in again for creating another session.
Same thing if he wants to use another window.

Isn't this what is needed?

Octavian

No, setting it to 0 just ensures that when the *browser* is closed the cookie is removed. A cookie set in one window is available to all windows of that browser and all windows/tabs have the same cookie (and hence the same session).

Regards
Ian C. Docherty (IcyDee)



_______________________________________________
List: [email protected]
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/

Reply via email to