Date: 01/13/02
- Next message: Markus Fischer: "[PHP-DOC] Re: [PHP-DEV] Re: [PHP-DOC] Re: [PHP-DEV] superglobals and bc"
- Previous message: Georg Richter: "Re: [PHP-DOC] cvs: phpdoc /en bookinfo.xml"
- In reply to: Richard Heyes: "[PHP-DOC] RE: [PHP-DEV] Re: [PHP-DOC] Re: [PHP-DEV] superglobals and bc"
- Next in thread: Markus Fischer: "[PHP-DOC] Re: [PHP-DEV] Re: [PHP-DOC] Re: [PHP-DEV] superglobals and bc"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> <?php
>
> session_start();
> if(ini_get('register_globals') AND !isset($session_global_var)){
> $session_global_var = array();
> }
>
> session_register('session_global_var');
>
> if(ini_get('register_globals')){
> $SESSION =& $session_global_var;
> }else{
> $SESSION =& $HTTP_SESSION_VARS['session_global_var'];
> }
>
> ?>
>
> Use the above code and you will be able to add/remove anything from the
> $SESSION array and it will be reflected in the next request.
OK, but this is a way of intorducing another thing: $SESSION, instead
of making $_SESSION work like in 4.1.0 in older versions... Using
register_shutdown_function, you can make this feature transparently
working. Though you can't make the superglobal thing work, as you cannot
declare superglobals...
Goba
- Next message: Markus Fischer: "[PHP-DOC] Re: [PHP-DEV] Re: [PHP-DOC] Re: [PHP-DEV] superglobals and bc"
- Previous message: Georg Richter: "Re: [PHP-DOC] cvs: phpdoc /en bookinfo.xml"
- In reply to: Richard Heyes: "[PHP-DOC] RE: [PHP-DEV] Re: [PHP-DOC] Re: [PHP-DEV] superglobals and bc"
- Next in thread: Markus Fischer: "[PHP-DOC] Re: [PHP-DEV] Re: [PHP-DOC] Re: [PHP-DEV] superglobals and bc"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

