session_start() does not keep alive current session if it's controled from remote server;
It works if it's all on the same server.
How can I 'set-up' session, to continue started session on remote server?
Tried this, but doesn't works:
ini_set('session.cookie_domain ', '.anotherserver.com');
ini_set('session.referer_check','anotherserver');
Example:
If I have www.myserver.com/session.php and in the script: session_start();
a) session continues on the same server;
For example: www.myserver.com/test.html
and inside: <a href="http://www.myserver.com/session.php?add=1">+1</a>
<a href="http://www.myserver.com/session.php?add=2">+2</a>
If I click on '+1' or '+2' session continues and value from add
variable is added to session variable:
b) session DOES NOT continue if I click the same test.html on another server:
for example: www.anotherserver.com/test.html
Each time you click the new session is created;
It's assumed like a new client clicked, but in fact it's the same client.
Can I solve this problem without programming my own session managment?
Anyone knows a simple solution?
A1es