About sessions and subdomains
| From: | Andre Polykanine | Date: | Sat, 02 Jun 2012 18:43:37 +0000 |
| Subject: | About sessions and subdomains | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-318110@lists.php.net to get a copy of this message | ||
Hi everyone,
Sorry, this might be a stupid question, but still.
Once upon a time I had done so my sessions were handled on all
subdomains of my website (shame on me for doing so!).
Now, when I comment out the line
session_set_cookie_params(0, "/", ".oire.org");
in my header file, I got an empty $_SESSION array after submitting
every single form on my website.
For sure, signing out and back in, as well as cookie removing, were
tried several times.
Thanks in advance!
--
With best regards from Ukraine,
Andre
Skype: Francophile
Blog: http://oire.org/menelion
Twitter: http://twitter.com/m_elensule
Facebook: http://facebook.com/menelion