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

Posted by Jerry Stuckle on 12/06/89 11:57

Geoff Berrow wrote:
> 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

First of all, ensure you have all errors enabled and displayed:

error_reporting(E_ALL);
ini_set('display_errors','1');

I suspect you'll find an error in there.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

 

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

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