Setting a cookie using PHP
<?php
$expire=time()+60*60*24*30;
setcookie(“user”,”Balu”, $expire);
?>
<html></html>
Retrieve a cookie using php
<html>
<body>
<?php
if (isset($_COOKIE["user"]))
echo “Welcome ” . $_COOKIE["user"] . “!<br />”;
else
echo “Welcome guest!<br />”;
?>
</body>
</html>
Very simple is it….enjoy!!!!!!!!!!!!!!
Incoming search terms:
- background color with set width using phpexcel (3)
- how to set link inside jqgrid in jsf demo (2)
- in the php change color of hyperlink using cookie (1)
- mysql perl display search results next (1)
- searchresults jsp js (1)
You will also be interested in ,
- XML Parsing Made Easy
- Get browser language using php
- PHP E-mail with attachment
- Read text file reverse using php
- Create thumbnail using php and gd library
- Enabling curl on XAMPP for Windows
- Appending string using php to a text file
- Getting Remote Webpage Info Using PHP
- How to create random passwords using php
- HTML E-mail Using PHP

