smerny Posted June 2, 2009 Share Posted June 2, 2009 My session works fine with http://www. etc... but if there is no www. the page still shows up properly, but the session does not work.. Link to comment Share on other sites More sharing options...
justsomeguy Posted June 2, 2009 Share Posted June 2, 2009 It's probably a domain issue on the session cookie. You can use session_set_cookie_params to set the domain parameter of the cookie to apply to all subdomains. If you set the domain as ".example.com", it will apply to example.com, www.example.com, etc.http://www.php.net/manual/en/function.sess...okie-params.php Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.