2 Votes Vote

PHP Session recreate (CLI)

Posted by topdog 453 days ago Questions| session php script All

Hello,

I am running a script whitch is ruuning another script in background

exec('php index.php test/test/'.Session::instance()->id().' > /dev/null &');

As you can see in the example above, I am passing the session ID to it simply because I need to have the same exact session it the script run in background.

Is there a way to recreate session with all its data by knowing the session ID?

Originally asked by: Spyro on Stack Overflow

Discuss Bury


Who Voted for this Question