Last active
November 10, 2015 13:00
-
-
Save edirpedro/418a31442d7161005dba to your computer and use it in GitHub Desktop.
Loading CodeIgniter Session Externally
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
if(!session_id()) | |
session_start(); | |
if(isset($_COOKIE['ci_session'])) { | |
session_unset(); | |
$session = file_get_contents("/var/tmp/ci_session" . $_COOKIE['ci_session']); | |
session_decode($session); | |
} | |
print_r($_SESSION); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
great