Skip Menu |

This queue is for tickets about the CGI-Application-Plugin-Session CPAN distribution.

Report information
The Basics
Id: 12149
Status: resolved
Priority: 0/
Queue: CGI-Application-Plugin-Session

People
Owner: Nobody in particular
Requestors: mark [...] summersault.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.06
Fixed in: (no value)



Subject: SEND_COOKIE only works after session() is called.
The documentation for SEND_COOKIE was not clear that the cookie is not automatically added to the headers unless I call session(). Perhaps this could be solved nicely with a teardown() hook, which checks to see if a cookie header needs to be added. The docs for SEND_COOKIE should perhaps also mention that session_cookie() needs to be imported to work, even if the user is not accessing it directly.
On Tue Apr 05 12:37:43 2005, guest wrote: Show quoted text
> The documentation for SEND_COOKIE was not clear that the cookie is not > automatically added to the headers unless I call session().
I have clarified the docs as you suggested. Show quoted text
> Perhaps this could be solved nicely with a teardown() hook, which > checks to see if a cookie header needs to be added.
That defeats the lazy loading of the module. We would need to create a session object in order to get a valid session. If you really want a session created for every user, then just add a callback at the prerun or postrun stage that just calls $self->session. Show quoted text
> The docs for SEND_COOKIE should perhaps also mention that > session_cookie() needs to be imported to work, even if the user is not > accessing it directly.
This was resolved in release 0.07, but I forgot to update this bug report. Cheers, Cees