PHP and sessions

From: Date: Mon, 17 Oct 2005 19:36:27 +0000
Subject: PHP and sessions
Groups: php.general 
Request: Send a blank email to php-general+get-224243@lists.php.net to get a copy of this message
Hello Can anybody help me with sessions? Where is the problem? I start session in "start.php" script. <?php // start.php script session_name('test'); session_start(); $_SESSION['fig1'] = 'split'; .. .. .. $split = "http://". $_SERVER['HTTP-HOST']. dirname($_SERVER['PHP_SELF']). "/split.php"; ?> <a href=<?php echo $split ?> target="_blank" title="Split user">Split testing</a> ______________________________________________________ After link cliking in IE or OPERA they start new session. How can I conect to existing session? <?php // split.php session_name('test'); session_start(); // unable to connect to existing session, create another one. ?> .. .. .. I used this two scripts wit DeepNet Explorer and all works fine, but in IE and OPERA function session_start() called from split.php start new session so I can't read $_SESSON array than. Thanks for any hints

« previous php.general (#224243) next »