[Catalyst] Session ID Strategies
Sebastian Riedel
sri at oook.de
Fri Oct 14 06:03:40 CEST 2005
Am 13.10.2005 um 21:49 schrieb Cory Watson:
> Perhaps I've not spent enough time looking, but I'm having a hard
> time finding how to properly throw a session id around. I've found
> the uri() method for cooking a URI to include the session id, but I
> don't see an easy way to get this into all my templates. I suppose
> I could write some type of macro that returned a URI...
>
> Aside from getting the session id INTO the url, there's the
> question of how to get it out. I can easily get a cooked URI and
> follow it, but Catalyst seems to ignore the session id and generate
> a new one each time when I turn off cookies. The first thing that
> comes to mind is a regex action that looks for ^([0-9a-fA-F]{32})
> (.*)$ then have that action forward to $2 out of snippets.
>
> Perhaps I'm missing a solution. Can someone offer some suggestions?
Umm, have you tried "rewrite => 1"?
It's supposed to automatically rewrite all uri's in your output with
session id's and detect them on incoming requests.
But as i said before, i'd like to have new session plugins that can
be used like this.
use Catalyst qw/Session::Store::FastMmap Session::State::URI
Session::State::Cookie/;
--
sebastian
More information about the Catalyst
mailing list