Php
Cookie çerez Işlemleri
cookie oluşturmak
$first_name = 'David';
setcookie('first_name',$first_name,time() + (86400 * 7)); // 86400 = 1 day
cookie getirmek
echo 'Hello '.($_COOKIE['first_name']!='' ? $_COOKIE['first_name'] : 'Guest'); // Hello David!
www.codekodu.com sitesinden alınmıştır.