You are here: PHP and sessions « PHP « IT news, forums, messages
PHP and sessions

Posted by "J.Lubelan" on 10/20/87 11:29

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация