[Catalyst] Use SessionId from HTTP header
c.kras at pcc-online.net
Sun Feb 14 16:08:15 GMT 2010
Tomas Doran schreef:
> On 14 Feb 2010, at 11:43, Christiaan Kras wrote:
>> In a RESTful application I'm working I'd like to be able to load a =
>> session based on the sessionid which is sent with the HTTP headers.
> It's perfectly arguable that you just failed at REST.
Thanks for the link and preventing me from some big mistakes in the =
beginning of my application. Not using sessions makes a lot more sense =
>> The application will, at a later stadium, get a webinterface as well =
>> to be able to choose.
> Do HTTP auth (Catalyst::Authentication::Credential::HTTP) in the =
> RESTful part, and use standard password & cookies for the non-restful =
> You just configure 2 different realms in your authentication config, =
> and call $c->authenticate with a realm parameter..
Will do! This will actually make things easier.
> List: Catalyst at lists.scsys.co.uk
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive: =
> Dev site: http://dev.catalyst.perl.org/
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 5245 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.scsys.co.uk/pipermail/catalyst/attachments/20100214/e2e9=
More information about the Catalyst