Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Losing my Cookie

by ggvaidya (Pilgrim)
on Oct 18, 2008 at 04:05 UTC ( #717897=note: print w/replies, xml ) Need Help??


in reply to Losing my Cookie

I'm a big fan of going to the source on matters like this :-).

A really nice way of debugging cookie-related problems is by looking at your browser's "Page information" or "Site information" dialog box (in Opera, it's called "Edit Site Preferences", and is in the menu you get if you right click on a page). This dialog box will show you a list of all the cookies your browser has, including when they expire, the path and domain they apply to, and all kinds of other information. You could check to see if there is any reason that cookie might not apply or be sent to the HTML page from there.

Also: How do you get the session id to the browser? Do you use $session->header() or CGI::header or CGI::Cookie in your code anywhere? If you do, the actual cookie settings you use there might also be helpful in debugging your problem.

Replies are listed 'Best First'.
Re^2: Losing my Cookie
by juster (Friar) on Oct 18, 2008 at 06:49 UTC
    Another handy tool is the Live HTTP Headers Firefox Extension. This shows the HTTP headers as they are sent and received.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (7)
As of 2019-05-22 13:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you enjoy 3D movies?



    Results (140 votes). Check out past polls.

    Notices?
    • (Sep 10, 2018 at 22:53 UTC) Welcome new users!