/ Published in: PHP
To set cookie use "cookie('name of your cookie','cookie data','expire date ')" it will set your cookie in the user browser .
To get the saved cookie use "cookie('name of your cookie')" it will give you the value of the cookie which you saved in the user's browser .
To get the saved cookie use "cookie('name of your cookie')" it will give you the value of the cookie which you saved in the user's browser .
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php /* If you have doubt please ontact me : [email protected] */ function cookie($name , $val = null , $exp = 0){ if($val == null) return $_COOKIE[$name]; else{ } } ?>
URL: http://ksoft.is-great.org