Greenguy's Board


Go Back   Greenguy's Board > Programming & Scripting
Register FAQ Calendar Today's Posts

 
 
Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
Old 2005-01-31, 12:41 PM   #2
cd34
a.k.a. Sparky
 
cd34's Avatar
 
Join Date: Sep 2004
Location: West Palm Beach, FL, USA
Posts: 2,396
without doing a redirect after setting a cookie, I don't know of a reliable way to do so.

Basically something like:
index.php

<?php
setcookie ('cookied','yes')
header('Location: cookietest.php');
?>

cookietest.php
<?php
if ($_COOKIE['cookied']) {
print "I've got your warm gooey chocolate chip cookie right here";
}
?>

There are other methods, this one is pretty much tried and true. That is consquently the behavior that got one of my web sites banned from google for two years

There might be errors in the code, I didn't test it, but, it should be pretty darn close.
__________________
SnapReplay.com a different way to share photos - iPhone & Android
cd34 is offline   Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:49 PM.


Mark Read
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc