AR
Does this help somehow? I found it on php.net coments...
<?php
if (isset($_REQUEST['_SESSION'])) die("Get lost Muppet!");
?>
<!DOCTYPE html PUBLIC "-//***WAPFORUM**.**RS***
AR
function page_protect()
{
session_start();
if (isset($_SESSION['HTTP_USER_AGENT']))
{
if ($_SESSION['HTTP_USER_AGENT'] != md5($_SERVER['HTTP_USER_AGENT']))
{
login();
exit;
}
}
}
function login()
{
session_start();
if(isset($_SESSION['sid']) || isset($_COOKIE['sid'])) {
Enter your sql for your own site !!
}
Not "sid" or "PHPSESSID", thats are the name of _SESSION.
<!DOCTYPE html PUBLIC "-//***WAPFORUM**.**RS***
AR
I'm just make a distinction between these two, of course and I said, is irrelevant how it is named... 😉
The question is whether this snippet helps and if placed before or after the session_start() ?
<!DOCTYPE html PUBLIC "-//***WAPFORUM**.**RS***
AR
What to do? Isn't that a little obviously?
Thats the coment from php.net, google it...
Btw, thats not what i ask...
<!DOCTYPE html PUBLIC "-//***WAPFORUM**.**RS***
AR
Bro... 🙂
- Not function wich Subziro did, the snippet that I copy-paste from php.net:
<?php
if (isset($_REQUEST['_SESSION'])) die("Get lost Muppet!");
?>
- The question is whether this snippet helps and if, is to be placed before or after the session_start() ?
Not session vars, the snippet. I'm not asking about function or sessions or its vars or what ever. Just 2. thing.
And I hate when someone explains me something I have not asked, ie, when I see that he did not understand the question...
I hope you are not angry but really did not know what else to write, not to go into, God forbid, argument. 🙂
<!DOCTYPE html PUBLIC "-//***WAPFORUM**.**RS***
AR
You are absolutely right if you're by phone, should say right away... 😉
PHP: $_SESSION - Manual
This is that page, its the first coment but no any explanation in it.
Thanks for answer!
<!DOCTYPE html PUBLIC "-//***WAPFORUM**.**RS***