[Catalyst] Announcement - New session plugins

Yuval Kogman nothingmuch at woobling.org
Wed Nov 9 01:57:23 CET 2005


On Tue, Nov 08, 2005 at 12:38:07 +0100, Andreas Marienborg wrote:
> All I know is that 90% of all sessions elsewhere are expire on close  of browser, so it must be 
> dealt with. We cannot have a sessionsystem  not supporting this.

Our solution is

	$c->{authentication}{cookie_expires}

If this key is not provided it defaults to {expires}. If it exists
it will set the expiry time independently of the session data. If
it's undef it will create a non-persistent cookie.

> Technically, you could have an "onclose" or "onunload" handler do  some ajax stuff, but it's not 
> generally a good solution, as it wont  happen on quit etc.

People who disable cookies usually disable javascript first ;-)

-- 
 ()  Yuval Kogman <nothingmuch at woobling.org> 0xEBD27418  perl hacker &
 /\  kung foo master: /me beats up some cheese: neeyah!!!!!!!!!!!!!!!!!

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.rawmode.org/pipermail/catalyst/attachments/20051109/2fcb758d/attachment.pgp


More information about the Catalyst mailing list