Problem with session /www vs http
Posted: Thu Jun 23, 2011 8:44 am
Hi
Recently i ran into tedious problem when i started working on a php website.
It uses sessions to carry user data between pages as usual, but for some reason, it creates new session for domain with/without www.
e.g http://mysite.com has different session compared to http://www.mysite.com. So whenever user clicks on absolute url“s defined with full site url, they get one session, and relative links are using another session.
Does anybody know how to make the site use one session only?
ps: i have few calls for regenerating session id, if that may be a problem.
thanks in advance
Recently i ran into tedious problem when i started working on a php website.
It uses sessions to carry user data between pages as usual, but for some reason, it creates new session for domain with/without www.
e.g http://mysite.com has different session compared to http://www.mysite.com. So whenever user clicks on absolute url“s defined with full site url, they get one session, and relative links are using another session.
Does anybody know how to make the site use one session only?
ps: i have few calls for regenerating session id, if that may be a problem.
thanks in advance