Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

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
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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (10)
As of 2014-09-24 00:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (243 votes), past polls