PHP Sessions

by 5 replies
6
Is it possible to carry session data between http://www.mycoolsite.com and https://www.secure.mycoolsite.com. OR do i have to rename my ssl subdomain to https://www.mycoolsite.com to pass session data.:confused:
#programming #php #sessions
  • ini_set('session.cookie_secure', 1);

    Hope this helps.
  • This post might help since you're asking about setting cookies across subdomains
    ubuntuforums.org/showthread.php?t=642640

    sorry I don't have enough posts to put a real link in there yet.
  • A PHP session variable is used to store information about, or change settings for a user session. Session variables hold information about one single user, and are available to all pages in one application.
    • [1] reply
    • you could try this:

      php_value session.cookie_domain ".domain.com"
      • [1] reply

Next Topics on Trending Feed

  • 6

    Is it possible to carry session data between http://www.mycoolsite.com and https://www.secure.mycoolsite.com. OR do i have to rename my ssl subdomain to https://www.mycoolsite.com to pass session data.:confused: