Re: Re: Passing variables to a PHP script on clicking a hyperlink
| From: | mike | Date: | Fri, 24 Aug 2007 17:21:03 +0000 |
| Subject: | Re: Re: Passing variables to a PHP script on clicking a hyperlink | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.db php.general |
| Request: | Send a blank email to php-general+get-261244@lists.php.net to get a copy of this message | ||
On 8/24/07, Suamya Srivastava <suamya.srivastava@connexios.com> wrote:
> Hi..
>
> in the settings, session.use_cookies is turned ON but session.trans_sid is
> turned OFF. do i need to enable this as well?
> by doing this can i disable the register_globals?
> - suamya
You need to make sure session_start() is called on all pages to be
able to read/write the session data. This is probably the case.
I have never needed to use trans_sid. It introduces some complexities
that I don't think are needed.
$_REQUEST is basically a new way of doing register_globals, which is a
security issue. register_globals can allow a savvy user to overwrite a
variable with another source - say you wanted a POST variable, a user
could supply GET instead. or if you want it to come from a cookie
using $_COOKIE it could be overridden using GET. If that makes sense.
There's a lot of information about it. It was disabled by default a
while back. Never enable it. You do not need it, period. Anyone
telling you to enable it or reading somewhere you need to enable it is
*absolutely* incorrect.