OK, try this. The session_start() has to come before the global statement:
<?php
function write_session()
{
session_start();
global $HTTP_SESSION_VARS;
$HTTP_SESSION_VARS[my_session_var] = "Boogedy Boogedy";
session_register($HTTP_SESSION_VARS["my_session_var"]);
}
write_session();
echo $HTTP_SESSION_VARS['my_session_var'];
?>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
- Re: [PHP] I don't understand HTTP_SESSION_VARS Michael Champagne
- Re: [PHP] I don't understand HTTP_SESSION_VARS hi
- Re: [PHP] I don't understand HTTP_SESSION_VARS Johnson, Kirk
- Re: [PHP] I don't understand HTTP_SESSION_VARS hi
- Re: [PHP] I don't understand HTTP_SESSION_VAR... Michael Champagne
- Re: [PHP] I don't understand HTTP_SESSION... hi
- [PHP] Sessions: suggestions and comments ..s.c.o.t.t.. [gts]
- Re: [PHP] I don't understand HTTP_SESSION_VARS Michael Champagne
- Re: [PHP] I don't understand HTTP_SESSION_VARS hi
- Re: [PHP] I don't understand HTTP_SESSION_VAR... Michael Champagne
- RE: [PHP] I don't understand HTTP_SESSION_VARS Johnson, Kirk
- RE: [PHP] I don't understand HTTP_SESSION_VARS Michael Champagne
- RE: [PHP] I don't understand HTTP_SESSION_VARS Johnson, Kirk
- RE: [PHP] I don't understand HTTP_SESSION_VARS Michael Champagne

