the PHPSESSID variable that holds the session id is not being saved into the client cookie.
This results in a new session id being generated every time I call the session_start()
function.
This is true when i'm using FireFox, Opera and Chrome. With safari, for some reason, this variable is being successfuly saved into the cookie and everything works fine.
EDIT: Here is my session settings via phpinfo()
:
My website has a subdomain, and I want to use the same session acorss all subdomains.
2nd EDIT:
when I check var_dump($_COOKIE);
on my main domain I get the session id under the name PHPSESSID
but when I do that on the subdomain I get an empty array()
.