Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

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

( #99834=categorized question: print w/ replies, xml ) Need Help??
Contributed by Hero Zzyzzx on Jul 26, 2001 at 02:35 UTC
Q&A  > CGI programming


That is, if I set a cookie for, can I then access the same cookie at

Answer: Can I set a cookie with an SSL connection and access it in a non-SSL connection?
contributed by Ovid

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.


  • Please read these before you post! —
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Log In?

    What's my password?
    Create A New User
    and the web crawler heard nothing...

    How do I use this? | Other CB clients
    Other Users?
    Others about the Monastery: (8)
    As of 2014-07-12 07:24 GMT
    Find Nodes?
      Voting Booth?

      When choosing user names for websites, I prefer to use:

      Results (238 votes), past polls