Sessions
| From: | Chris Morrow | Date: | Mon, 05 Aug 2002 15:19:29 +0000 |
| Subject: | Sessions | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-111217@lists.php.net to get a copy of this message | ||
Hi Guys!
I am having trouble with my sessions. Basically I have a php script from
which I register a session variable:
session_register("myVar");
$myVar = "hello";
My problem arises when I try to output the variables further down the page
using $HTTP_SESSION_VARS['myVar'] it just doesn't display anything unless I
refresh the page then it works ok.
I have tried using the ob_start() and ob_end_flush() functions to buffer the
output, these seem to work great with cookies but not so great with session
variables.
Does anybody have any ideas how I should be tackling this?
Thanks,
Chris