Last active
August 23, 2016 17:10
-
-
Save SmugZombie/047baca4c4e6e420e9e98e13ec03e685 to your computer and use it in GitHub Desktop.
This file contains 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 | |
// Its recommended to place this in a file that is then included in all subsequent files, | |
// as without this information the page will not be able to access the proper session. | |
session_name("2620368ghwahw90w"); // Set to whatever arbitrary value you would like. The more complex the more secure | |
session_set_cookie_params(0, '/', '.mydomain.com'); // Set to the base level of the domain you wish to use | |
session_start(); // Start the session |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment