http://qs321.pair.com?node_id=99834

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.