note 40112 added to function.session-is-registered

From: Date: Sun, 22 Feb 2004 07:47:51 +0000
Subject: note 40112 added to function.session-is-registered
Groups: php.notes 
Request: Send a blank email to php-notes+get-65515@lists.php.net to get a copy of this message
Do not use this anymore! As of PHP 4.* the super globals are used, so you have to FORGET this function. Super globals are way more safe and they are exactly what they have to be: Clear. $_POST says that variables in that array come from a form. $_GET says that variables are passed through the URI. $_SESSION says (more than clear) that variables are in a session. USE THEM! They are not there because of their beauty or something.. So, forget session_register(), session_unregister(), session_destroy() and al those stupid functions. The only thing you need is the super global $_SESSION. ---- Manual Page -- http://www.php.net/manual/en/function.session-is-registered.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+40112 Delete -- http://master.php.net/manage/user-notes.php?action=delete+40112&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+40112&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#65515) next »