Our company is closing down for lack of funding in a couple of months. Our website is a portal for may of our products and services. Being such, the logs show that people bookmark many different landing pages. I want to add an informational page that every user must read before continuing. I have seen some site that have some sort of js pop-up box (that doesn't get blocked) that users click to close for some duration, however I can't figure out how to do this. I have been trying to get a "splash page" to work with the same idea.
I am open to any suggestions or alternatives.
We run, on this server, IIS, php, perl
I hesitate to change the overall site structure since we have embedded mapping applications that would have to be reconfigured if the URLs changed.
Thanks for any info you can give.
Here is what I have tried, without luck. I am not married to cookies, session js, etc. I just need something that works. :-)
on the splash page:
<?php
session_start();
setcookie ("no_splash", "", '0');
?>
<html>
<head>
<title>splash page</title>
</head>
<body>
This is a splash page
</body>
and the 'other' pages:
<?php
session_start(); // this needs to be declared on the top of every page, specially before sending any output to the browser.
if(!isset($_COOKIE['no_splash'])) {
session_write_close();
header('location: http://website/splash.php');
exit();
}
?>
<html>
<head>
<title>not splash</title>
</head>
<body>
This is NOT a splash page
</body>
Aaron