[Catalyst] Session problems with IE and cookies

Dylan Vanderhoof DylanV at semaphore.com
Wed Feb 28 17:23:32 GMT 2007


Not really.  I'm running IE7, and this is in mod_perl, so it has nothing
to do with the dev server. =)

Thanks,
Dylan

> -----Original Message-----
> From: Thomas Hartman [mailto:thomashartman1 at googlemail.com] 
> Sent: Wednesday, February 28, 2007 3:09 AM
> To: The elegant MVC web framework
> Subject: Re: [Catalyst] Session problems with IE and cookies
> 
> 
> Don't really understand the root of the problem, but I asked about
> this on #Catalyst and was told of a workaround, and saved it to my
> .bashrc hints.
> 
> If I recall correctly, the consensus is that this is an IE6 bug.
> 
> hartman at ds0207:~> thartman_catalyst_IE6_response_redirect_prob_hint
> try myapp_server.pl with -f -k flags
> hartman at ds0207:~>
> 
> hope this helps, thomas.
> 
> On 2/27/07, Dylan Vanderhoof <DylanV at semaphore.com> wrote:
> > I'm seeing an issue where if IE is holding a cookie when a session
> > expires (expires set to 7200, cookie_expires set to 0), the 
> user can't
> > login.  Login authenticates successfully, but redirects back to the
> > login page.  (Session is expired and not being deleted correctly)
> >
> > This does not happen with Firefox, which appears to 
> actually delete the
> > session correctly.
> >
> > I noticed the same behavior if the session data (Store::DBIC) was
> > deleted from the DB before the session expires.
> >
> > Any ideas what might be causing this and how to fix it?
> >
> > Thanks,
> > Dylan
> >
> > Debug output: (Repeats the last 2 requests until the 
> browser is closed
> > with a session cookie or the cookie file is deleted with a 
> cookie with
> > an expiration)
> >
> > [debug] "GET" request for "/" from "209.221.173.66"
> > [debug] Found sessionid 
> "cb30ab14db722929594b6ec6e4f35bc28895284f" in
> > cookie
> > [debug] Deleting session(session expired)
> > [debug] Redirecting to "https://myapp/signin"
> > [info] Request took 0.084344s (11.856/s)
> > 
> .-------------------------------------------------------------
> ---+------
> > -----.
> > | Action                                                    
>      | Time
> > |
> > 
> +-------------------------------------------------------------
> ---+------
> > -----+
> > | /auto                                                          |
> > 0.057025s |
> > | /end                                                           |
> > 0.001156s |
> > 
> '-------------------------------------------------------------
> ---+------
> > -----'
> >
> > [info] *** Request 1 (0.001/s) [3435] [Tue Feb 27 21:50:43 2007] ***
> > [debug] "GET" request for "signin" from "209.221.173.66"
> > [debug] Path is "signin"
> > [debug] Found sessionid 
> "cb30ab14db722929594b6ec6e4f35bc28895284f" in
> > cookie
> > [debug] Deleting session(session expired)
> > [debug] Rendering template "login_welcome.tt"
> > [info] Request took 0.178703s (5.596/s)
> > 
> .-------------------------------------------------------------
> ---+------
> > -----.
> > | Action                                                    
>      | Time
> > |
> > 
> +-------------------------------------------------------------
> ---+------
> > -----+
> > | /auto                                                          |
> > 0.000492s |
> > | /auth/signin                                                   |
> > 0.083319s |
> > | /end                                                           |
> > 0.066447s |
> > |  -> NetResponse::View::TT->process                             |
> > 0.062633s |
> > 
> '-------------------------------------------------------------
> ---+------
> > -----'
> >
> > [info] *** Request 2 (0.002/s) [3435] [Tue Feb 27 13:50:50 2007] ***
> > [debug] Body Parameters are:
> > 
> .-------------------------------------+-----------------------
> ----------
> > -----.
> > | Parameter                           | Value
> > |
> > 
> +-------------------------------------+-----------------------
> ----------
> > -----+
> > | email                               | username                 |
> > | password                            | password            
>            |
> > 
> '-------------------------------------+-----------------------
> ----------
> > -----'
> > [debug] "POST" request for "signin" from "209.221.173.66"
> > [debug] Path is "signin"
> > [debug] Found sessionid 
> "cb30ab14db722929594b6ec6e4f35bc28895284f" in
> > cookie
> > [debug] Deleting session(session expired)
> > [debug] Found sessionid 
> "cb30ab14db722929594b6ec6e4f35bc28895284f" in
> > cookie
> > [debug] Deleting session(session expired)
> > [debug] Found sessionid 
> "cb30ab14db722929594b6ec6e4f35bc28895284f" in
> > cookie
> > [debug] Successfully authenticated user 'dylanv at semaphore.com'.
> > [debug] Redirecting to "https://myapp/signin"
> >
> > _______________________________________________
> > List: Catalyst at lists.rawmode.org
> > Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
> > Searchable archive: 
> http://www.mail-archive.com/catalyst@lists.rawmode.org/
> > Dev site: http://dev.catalyst.perl.org/
> >
> 
> _______________________________________________
> List: Catalyst at lists.rawmode.org
> Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
> Searchable archive: 
> http://www.mail-archive.com/catalyst@lists.rawmode.org/
> Dev site: http://dev.catalyst.perl.org/
> 



More information about the Catalyst mailing list