Help guys
Is it possible to to have sessions which can afford you to send data/variables across 2 different web sites. If possible, send code showing both how to send and how to receive. By the way I do not mean sessions across pages of the same website, rather across sites themselves.
Secondly how do you resume a session which had been destroyed in case you need some data from it
Kernan
sessions across web sites
Moderator: General Moderators
Nope. There's no way to do it via just sessions. You'd have to store the data in the database which is accessible from both servers, and recreate your session from that saved data.
You'd basically be creating a new session for each transfer from one server to the other, but setting the session variables to their respective values from the database.
To answer your second question: You can't. If a session's gone, it's gone. Unless you have implemented your own session handling mechanism.
More on that: http://php.net/manual/function.session- ... andler.php
You'd basically be creating a new session for each transfer from one server to the other, but setting the session variables to their respective values from the database.
To answer your second question: You can't. If a session's gone, it's gone. Unless you have implemented your own session handling mechanism.
More on that: http://php.net/manual/function.session- ... andler.php