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]
|