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

Re: [cgiapp] CGI::Application::Plugin::Session woes -- further research


On Thu, 13 Jan 2005 01:17:01 -0500 (EST), Jaldhar H. Vyas
<suppressed> wrote:
>     COOKIE_PARAMS       => {
>                             -path    => $self->query->url(-absolute => 1),
>                             -expires => '+1y',
>                             -secure  => 1.
>                            },

Have you tried it without these COOKIE params?  Are you sure you need
the -secure option there as that means this cookie will only be sent
back to the server if https is used?  Are you using https for all your
pages?  Are you sure you need the -path options?  By using '-absolute
=> 1' you are setting the path to the filename of the first request,
not a directory.

>   $self->session_cookie;
>   my $cookie = $self->query->cookie(CGISESSID => $self->session->id);
>   $self->header_add(-cookie => $cookie );
> }

The reason this one works is because you are manually setting and
sending the cookie, but you are not putting all the same parameters on
the cookie as you are above.

Try and remove all of the COOKI_PARAMS options, and my guess is that
it will work.  Then put them back one at a time to figure out which
one is causing the problem.  My guess is that both -secure and -path
are causing the problems.

Cheers,

-- 
Cees Hek

---------------------------------------------------------------------
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.