note 20577 added to function.session-register
| From: | shamaneb at yahoo dot %spam% dot com | Date: | Mon, 08 Apr 2002 20:23:39 +0000 |
| Subject: | note 20577 added to function.session-register | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-28979@lists.php.net to get a copy of this message | ||
If globals is off on your system, or if, more general, you want to write Code for others and you
can't assure the Session variables are registered globally, you could use the technique of
'phpMyAdmin' (I guess among others) - just use 'extract' at the right time.
<?php
// unset critical vars
@session_start;
extract($HTTP_SESSION_VARS);
?>
--
http://www.php.net/manual/en/function.session-register.php
http://master.php.net/manage/user-notes.php?action=edit+20577
http://master.php.net/manage/user-notes.php?action=delete+20577
http://master.php.net/manage/user-notes.php?action=reject+20577