Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: inserting and using cookies

by guha (Priest)
on Jan 24, 2006 at 14:41 UTC ( #525182=note: print w/ replies, xml ) Need Help??


in reply to inserting and using cookies

I have not used cookie.lib myself, so now I'm guessing ..

Have you included the cookie in the page you send to the browser ?

print "Content-type: text/html\n"; &SetCookies('name',"$name",'email',"$email"); print "\n";

The symptoms you describe sounds alot like either the above or that the SetCookieExpDate call didn't work.

Or perhaps the order is essential, aka you need to call SetCookies after SetCookieExpDate ?


Comment on Re: inserting and using cookies
Download Code
Replies are listed 'Best First'.
Re^2: inserting and using cookies
by clickit (Initiate) on Jan 25, 2006 at 00:06 UTC
    Hi, guha:

    Yes, the SetCookieExpDate call didn't work because SetCookies must be called after SetCookieExpDate. I didn't realize the order is essential. It works now! Thanks!

    Appreciated, Patrick

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (6)
As of 2015-09-01 07:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The oldest computer book still on my shelves (or on my digital media) is ...













    Results (367 votes), past polls