Hi,
I have a php page which displays a flash introduction before the visitor reaches the actual index page of the website. I want to give the user the ability to disable the intro page next he/she visits the site. Could this be done via cookie settings? If so, how.
Your help is appreciated.
Cookie Help
Moderator: General Moderators
- superdezign
- DevNet Master
- Posts: 4135
- Joined: Sat Jan 20, 2007 11:06 pm
setcookie() and then use the $_COOKIE superglobal array to check.
So if I set a cookie on their machine, how can I then return them to a URL. Btw, don't mind the expiration:
Thanks.
Code: Select all
<?php
$value = 'FlashPage';
setcookie("mycookie", $value);
setcookie("mycookie", $value, time()+3600);
?>
Last edited by lawksalih on Fri Aug 24, 2007 9:22 am, edited 1 time in total.