Date: 12/11/00
- Next message: Johnson, Kirk: "RE: [phplib] Session variables across pages"
- Previous message: zoltan.sebestyen <email protected>: "[phplib] How to use db_Sql with Oracle 8?"
- Next in thread: Johnson, Kirk: "RE: [phplib] Session variables across pages"
- Maybe reply: Johnson, Kirk: "RE: [phplib] Session variables across pages"
- Maybe reply: Johnson, Kirk: "RE: [phplib] Session variables across pages"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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();
?>
-----------------------------
which produces the output which I expect, the value of $s is printed on the
page.
Now when you click to page 2...
--------- 2.php -------------
<?php
page_open(array("sess" => "sessionID"));
?>
$s = <? echo $s; ?>
<a href="1.php">next page </a></a>
<?
page_close();
?>
------------------------------
I get no output for $s. I've even tried $GLOBALS["s"] with no success
either.
The session should be working correctly as it's part of a larger site that
has been tested using $auth & $perms
TIA
M@
---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>
- Next message: Johnson, Kirk: "RE: [phplib] Session variables across pages"
- Previous message: zoltan.sebestyen <email protected>: "[phplib] How to use db_Sql with Oracle 8?"
- Next in thread: Johnson, Kirk: "RE: [phplib] Session variables across pages"
- Maybe reply: Johnson, Kirk: "RE: [phplib] Session variables across pages"
- Maybe reply: Johnson, Kirk: "RE: [phplib] Session variables across pages"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

