Jump to content


Photo

cookies with ssl (one cookie for http & https?)


  • Please log in to reply
2 replies to this topic

#1 john_6767

john_6767
  • Members
  • PipPipPip
  • Advanced Member
  • 99 posts

Posted 20 October 2006 - 12:29 AM

how do i set up a cookie so it will work when on http://www.mydomain.com and also on https://www.mydomain.com ..? at the moment i have a site that works fine on http and i am putting some pages on https, this is where it broke.. I have never used a ssl before so i may be missing something vital, all i have done is put the secure pages on the https and changed the links to them to absolute? Is this that normally needs to be done, if nto what are the steps that i should take when adding ssl to some pages in my site?

#2 printf

printf
  • Staff Alumni
  • Advanced Member
  • 889 posts

Posted 20 October 2006 - 01:44 AM

the cookie should work with both, ssl is just a connection protocol, it won't effect the cookie unless you set the cookie for secure mode only. these setting are controlled in your php.ini, or you can change them by setting a over-ruling cookie at run time! cookie control should be script based, so you control what cookie is set or unset with each request!


me!

#3 john_6767

john_6767
  • Members
  • PipPipPip
  • Advanced Member
  • 99 posts

Posted 20 October 2006 - 01:50 AM

cheers!




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users