Call us Toll-Free:
1-800-218-1525
Live ChatEmail us

 Sponsors

SetCookie

Code Wizard, 12-30-2006

information about the function "SetCookie".

<?php
SetCookie("tek", "sys", Time()+3600);
?>

// This would set a cookie with the name: tek and the value of sys. This cookie would be active 1 hour (3600 sec.).
To get the value of a cookie which was set, simply use the name of the cookie like a value (here: $tek)!

echo $name;

// The output of this would be "tek" as long as the cookie is active, one hour that is.

?>
Enjoyed this post?

Subscribe Now to receive new posts via Email as soon as they come out.

 Comments
Post your comments












Note: No link spamming! If your message contains link/s, it will NOT be published on the site before manually approved by one of our moderators.



About Us  |  Contact us  |  Privacy Policy  |  Terms & Conditions