Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Cookie not being set - FIXED

by Indomitus (Scribe)
on Jun 24, 2002 at 16:18 UTC ( [id://176846]=note: print w/replies, xml ) Need Help??


in reply to Cookie not being set

Thanks a lot for everybody's help. I changed over to using CGI rather than CGI::Cookie and I also changed to use redirect rather than header and now everything looks like it's working fine. I don't know it seemed to be working before, that's weird.

btw, I'm not sending the password in the cookie, it's another string that just identifies the user. I only call it userpass since in my original code I was sending the password. I've learned the error of my ways though.

Replies are listed 'Best First'.
Re: Re: Cookie not being set - FIXED
by DSPerlCoder (Novice) on Jun 26, 2002 at 00:47 UTC
    Your problem may have been that in the cookie you have to set:
    domain => ".whatever.com"

    In the browser, if you just have the "whatever.com" without the "www." it won't work. The dot in 'domain => ".whatever.com" requires that a name is in front of "whatever.com".

    For example: "http://www.whatever.com" <-- Will work
    "http://whatever.com" <-- Will NOT work

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (7)
As of 2024-09-18 15:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The PerlMonks site front end has:





    Results (25 votes). Check out past polls.

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.