On Tue, 16 Mar 2010, Nikita Dedik via RT wrote:
Show quoted text> Of course I did! I spent several hours looking for a problem in my code
> when realized that it's not my fault :).
But you didn't write any tests for this module that fail, so I'm not
convinced it's this module's fault.
Show quoted text> You're right about the way of deleting cookies by setting expiration in
> the past. But you didn't get my idea.
>
> _bake_cookie uses $self->{session_id} - which is already deleted by the
> moment you call it with '-1d'!
>
> delete $self->{session_id};
> self->_bake_cookie('-1d') if $self->{use_cookie};
>
> So instead of re-sending the cookie like, say, "Set-Cookie: sid=....;
> expires=..." it sends "Set-Cookie: =...; expires=...", i.e. a cookie
> with no name!
But the session_id is the cookie's _value_, not its name. So it should be
sending a cookie with no value that expires in the past.
What exactly is the problem?
-dave
/*============================================================
http://VegGuide.org http://blog.urth.org
Your guide to all that's veg House Absolute(ly Pointless)
============================================================*/