PHP and sessions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux