Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

Re: cookie created but impossible to read it

by moritz (Cardinal)
on Apr 05, 2014 at 10:18 UTC ( #1081232=note: print w/replies, xml ) Need Help??

in reply to cookie created but impossible to read it

Are you accessing the CGI script with HTTPS? If not, -secure => 1 will prevent the browser from sending it.

Also, you can (and should) debug all the steps that the cookie takes. For example with firebug (a firefox extension), you can see the whole HTTP response, including headers. Is the Set-Cookie line like you'd expect it?

If yes, next step: in the browser, list all cookies for your domain. Is it there?

If yes, next step: initiate another HTTP request from the browser, inspect the HTTP request. Is the cookie in there?

If you can answer all of those questions with "yes", you know that you have a problem with reading the cookie. Otherwise it's a problem with setting the cookie (or possibly a step inbetween).

Replies are listed 'Best First'.
Re^2: cookie created but impossible to read it
by *alexandre* (Beadle) on Apr 05, 2014 at 10:51 UTC
    thanks the path was wrong it's work fine rigth now :)

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (2)
As of 2023-02-08 06:47 GMT
Find Nodes?
    Voting Booth?
    I prefer not to run the latest version of Perl because:

    Results (40 votes). Check out past polls.