Re: Trouble with Session var
| From: | Curt Zirzow | Date: | Sun, 03 Aug 2003 00:03:12 +0000 |
| Subject: | Re: Trouble with Session var | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-158061@lists.php.net to get a copy of this message | ||
* Thus wrote James Johnson (james@smb-studios.com):
> Hello,
hello james.
>
> Is there a limit or something to the number of Session vars that can be
> used? I've even tried setting a Session var called "foo" and that doesn't
> work.
None that php enforces, only the operating system's filesystem and
the sanity of passing around 2MB of session data :)
> $row_GetCatText= mysql_fetch_assoc($GetCatText);
> $HTTP_SESSION_VARS['sv_adCatText'] = $row_GetCatText['category'];
> if($HTTP_SESSION_VARS['sv_adCatText'] == "Books"){
> header("Location: " . "CreateAdBook.php");
> exit;
> }else{
> header("Location: " . "CreateAdNonBook.php");
These location headers should be using an absolute URI
(http://server/path/to/file.php)
As for your session problem, I'm not entirely sure but one
recommendation would be to ensure that a 'Connection: close' header
is sent to the client also.
Curt
--
"I used to think I was indecisive, but now I'm not so sure."