[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cgiapp] How do I delete a session in C::A::P::Session?


On 1/25/07, Brad Cathey <suppressed> wrote:
Thank you Dan.

I did all this and it worked, but it seems like it should all happen with
one method instead of 3. Having

It should work with one call to $self->session_delete.  You should
note that CGI::Session does not actually delete the session until the
session object is destroyed.  But really your session should go out of
scope when your program finishes, so it still should have worked.

Perhaps the call to session_delete should undef the session object
after it calls $self->session->delete...

If undefing the session object after you call $self->session_delete
also does not work, can you create a small self-contained test that
shows this is not working?


   $self->session->delete();

really work would be nice, and make the most semantic sense.

That will only delete the session out of the session store, but since
CGI::Session does not do any cookie management, it will not delete
your cookie.

Cheers,

Cees

---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/suppressed/
             http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: suppressed
For additional commands, e-mail: suppressed


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.