Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

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

Comment on Re: cookie created but impossible to read it
Download Code
Replies are listed 'Best First'.
Re^2: cookie created but impossible to read it
by *alexandre* (Novice) 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
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 having an uproarious good time at the Monastery: (5)
As of 2015-11-30 06:20 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (759 votes), past polls