note 9739 added to Session handling functions
| From: | netben at free dot fr | Date: | Tue, 21 Nov 2000 18:51:35 +0000 |
| Subject: | note 9739 added to Session handling functions | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-7956@lists.php.net to get a copy of this message | ||
MODIFIED DUE TO 4.02 RELEASE
--> the http_*_vars are set , even if they're empty , so i now use empty instead of isset...
session handling is really cool.
but sometimes , you may need to override the session registered variables
with some post or get vars.
there is a directive in php.ini (gpc_order) that should do that , but it doesn't for me so i
wrote that :
(empty($HTTP_POST_VARS))?$postget=$HTTP_GET_VARS:$postget=$HTTP_POST_VARS;
while (list($key,$val)=each($postget)){
$$key=$val;
}
that could be useful..
http://www.php.net/manual/ref.session.php