RE: [phplib] Session variables across pages From: Johnson, Kirk (kjohnson <email protected>)
Date: 12/11/00

Matt,

Try
          $sess->register("s");
instead of
          $sess->register($s);

The variable *name* needs to be registered, not the value.

HTH

Kirk

-----Original Message-----
From: Matt Williams [mailto:matt <email protected>]

Hi

I don't know if I'm thinking wrong here but I would assume that if I
register a variable as a session variable, this variable would be present
for my use any any page until I either unregistered it or the session was
terminated/expired.
This however does not seem to be the case, well where I am it doesn't
anyway.
I have the following small tests

-------- 1.php ---------------
<?php
  page_open(array("sess" => "sessionID"));
  if(!isset($s)) { $s = "hahahaha"; }
  $sess->register($s);
?>
$s = <? echo $s; ?>
<a href="2.php">next page </a></a>
<?
page_close();
?>

---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>