Get Cookie Information While In https

Hi All

I have never really done anything with https before and am on a major learning curve right now.

As part of the tool I am building I have put a couple of cookies in to store some info that is needed through the process.

At one point I switch the page to https. When there I cannot access the cookie anymore.

How can I access the information in the cookie?

Thanks for any help.

mrmbarnes

IIRC, cookies are only concerned with the domain and therefore should be ignorant as to whether what protocol is being used.

Are you switching between (sub-)domains at all?

Hey

Thanks for your reply.

I’m dropping the www off. Does that make a difference?

Mrmbarnes

It might. Is the public (i.e. non-https) site running on www.?
Check your cookie using Firebug or something similar? If the cookie is written to use www.yoursite.com as domain, it will not be accessible on yoursite.com

Check out the setcookie manual page to see how you can set the domain:
http://php.net/manual/en/function.setcookie.php

[hint] if you set the domain as .yoursite.com it’ll be available on all subdomains. [/hint]