Re: HTTP_SESSION_VARS
| From: | Ron Clark | Date: | Thu, 08 Nov 2001 19:10:54 +0000 |
| Subject: | Re: HTTP_SESSION_VARS | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-73932@lists.php.net to get a copy of this message | ||
"Johnson, Kirk" wrote:
>
> > I am doing $username = $HTTP_POST_VARS[username];
> > and if I print $username it has a value
>
> Try doing $HTTP_SESSION_VARS['username'] = $HTTP_POST_VARS['username'];
> When register_globals is off, I don't believe that globals get stored to the
> $HTTP_SESSION_VARS array when the script ends. Instead, you have to assign
> them there yourself.
>
> Side note: I don't think you need to use session_register() as well, just
> create the right elements in $HTTP_SESSION_VARS instead.
>
> Kirk
That works. Thanks!!! :)
Now all I have to do is go through 50000 lines of code and assign to the
session array instead of session_register. Grep is my friend.
--
Ron Clark
System Administrator/Web Coordinator
Armstrong Atlantic State University
11935 Abercorn Street
Savannah, Ga 31419
Phone: 912 961 3234
Fax: 912 927 5353