Is it possible to view server variables on a website you're visiting? Just wondering how secure they are. If it is possible, how do you do it?
jatar_k
4:42 am on Jun 11, 2004 (gmt 0)
what variables exactly are you worried about?
chadmg
4:25 pm on Jun 11, 2004 (gmt 0)
I must have been tired when I posted that. I meant to say session variables. Is it possible to view session variables that are set by a website? Is it possible to edit those variables through the browser or other means?
coopster
5:34 pm on Jun 11, 2004 (gmt 0)
Session variables are stored on the server. Unless you have access to the server files or database table where the sessions are stored, you won't have any access to the session variables. Can they be changed? That depends on how well you have implemented your code and setup your server. See the Example use of sessions with register_globals on or off in Using Register Globals [php.net] for more information.
jatar_k
5:36 pm on Jun 11, 2004 (gmt 0)
also never assume anything is impossible or that anything is 100% secure. A certain level of paranoia is always required and will help your security practices immensely.
chadmg
6:22 pm on Jun 11, 2004 (gmt 0)
Thanks jatar_k and coopster. That's a great link. I tend to think most things are possible. That's why I asked. :)
Is there a quick way to determine if register_globals is on or off?
PS you can change the setting via php.ini or by adding the following to you .htaccess
php_flag register_globals off
Tom
chadmg
1:11 pm on Jun 14, 2004 (gmt 0)
Thanks guys. I love php. There are such knowledgeable people out there. It's so much more robust than asp. Functions that I had to build by hand in asp are readily available in php.