Created
December 20, 2012 17:57
-
-
Save AntoineAugusti/4347250 to your computer and use it in GitHub Desktop.
Cookie for multiple subdomains
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
ini_set('session.cookie_domain', substr($_SERVER['SERVER_NAME'], strpos($_SERVER['SERVER_NAME'], "."), 100)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment