Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^2: CGI::Application::Plugin::Authentication not working on Google Chrome

by bcrowell2 (Friar)
on Mar 12, 2013 at 15:36 UTC ( [id://1022998]=note: print w/replies, xml ) Need Help??


in reply to Re: CGI::Application::Plugin::Authentication not working on Google Chrome
in thread CGI::Application::Plugin::Authentication not working on Google Chrome

Aha -- the combination of your reply and Anonymous Monk's did the trick. I examined the headers directly and got this:
$ ./Bug.pl Set-Cookie: login=Yz1jamd1SEMxYm43MHJsNDQramdTUDZFREJPUlU%3D; path=/; +expires=1d Date: Tue, 12 Mar 2013 15:24:49 GMT Content-Type: text/html; charset=ISO-8859-1
The "expires" string should be an actual date string, not the offset "1d." The problem was that the offset needed to be "+1d," as shown in your example. I then get this:
$ ./Bug.pl Set-Cookie: login=Yz1jamd1SEMxYm43MHJsNDQramdTUDZFREJPUlU%3D; path=/; +expires=Wed, 13-Mar-2013 15:34:59 GMT Date: Tue, 12 Mar 2013 15:34:59 GMT Content-Type: text/html; charset=ISO-8859-1
Apparently most browsers accept a malformed "expires" value and make the cookie a session cookie as a result, but chrome doesn't accept such a cookie at all.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1022998]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (3)
As of 2024-04-26 02:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found