Hi
how can i stop other people from using my popup that i have on my website, what can i do so people can only access the popup only through my site??
thanx for you time
Myjaan
how to create a popup only accessible via my website
Moderator: General Moderators
I would recommend setting a session or cookie variable valid for a specific period of time.
ie (psuedo)
ie (psuedo)
Code: Select all
// you have to be here first..
session_start();
$_SESSION['isAuthorized'] = 'yes';
$_SESSION['authTime'] = // microtime or somethingCode: Select all
// now you can look at this..
session_start();
if (!empty($_SESSION['isAuthorized']) && ($_SESSION['isAuthorized'] == 'yes') && ($_SESSION['authTime'] >= ($now - 20000))) {
// display the page
} else {
header("Location: http://gobacktowhereyoucamefrom.com");
}