Jump to content

Sessions and domains


darkywarkey

Recommended Posts

Having a problem when using sessions. If I define a session global it works fine unless the www. subdomain is different from the defined sessions origin. Such as -

 

$_SESSION['var1'] = 1; // defined on www.domain.com

...

// on domain.com $_SESSION['var1'] isn't recognized.

 

How can you allow sessions to be visible across both?

Link to comment
https://forums.phpfreaks.com/topic/139309-sessions-and-domains/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.