Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Can I set a cookie with an SSL connection and access it in a non-SSL connection?

by Hero Zzyzzx (Curate)
on Jul 26, 2001 at 02:35 UTC ( [id://99834]=perlquestion: print w/replies, xml ) Need Help??

Hero Zzyzzx has asked for the wisdom of the Perl Monks concerning the following question:

That is, if I set a cookie for https://www.foo.bar, can I then access the same cookie at http://www.foo.bar?

Originally posted as a Categorized Question.

  • Comment on Can I set a cookie with an SSL connection and access it in a non-SSL connection?

Replies are listed 'Best First'.
Re: Can I set a cookie with an SSL connection and access it in a non-SSL connection?
by Ovid (Cardinal) on Jul 26, 2001 at 02:49 UTC
    Yes, you can. One of the cookie attributes is "secure", which ensures that it can only be sent over a secure connection such as SSL. Leave off that attribute and use the same domain and you'll have no problem.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2024-04-25 22:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found