You are here: Session variables missing « PHP Programming Language « IT news, forums, messages
Session variables missing

Posted by Geoff Berrow on 11/25/47 11:57

I've been trying to add a login to a script for a client and the server
is not playing ball.

In the spirit of best advice received here I simplified it down to the
basics.

p1.php
<?php
session_start();
$_SESSION['test']="test";
print "<a href='p2.php'>p2</a>";
?>

p2.php
<?php
session_start();
print_r($_SESSION);
?>

p2.php shows just an empty array. I've tried using
session_write_close() and also passing the session id via the URL.
Nothing.

Anyone got any ideas? PHP is 4.3.9, server is running Linux and Apache
--
Regards,

Geoff Berrow

 

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

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