[Catalyst] multiple sessions in one application w/ C::P::Session

Sebastian Riedel sri at oook.de
Wed Apr 26 12:22:30 CEST 2006


26.04.2006 11:44 Hideo Kimura:
> I have a problem when I set up sessions of Catalyst application.
>
> Now I'd like to set up two sessions like this: One has long term
> expiration and the other has no expiration.
>
> But Catalyst::Plugin::Session configuration has only one namespace,
> {session}, so I can't configure different sessions.
>
> Is there anybody who knows how to solve this problem?
>
> I'd appreciate if you could tell me how to do this using C::P::Session
> plugin.  However, if it is difficult, any solution will be helpful,  
> too.

Set a cookie for the no-expiration-session and store it's data in the  
long-term-expiration-session.
Garbage collect whenever you create a new no-expiration-session.


--
sebastian




More information about the Catalyst mailing list