Using Multiple Values for a Cookie : Cookie : Cookie Session PHP Source Code


PHP Source Code » Cookie Session » Cookie »

 

Using Multiple Values for a Cookie




<?php
  if (!isset ($userdetails [0] ) ) {
     setcookie ("userdetails[0]", $username);
  }
  $userdetails[1]++;
  setcookie ("userdetails[1]", $userdetails[1]);
  echo ("Hello $userdetails[0], you've seen this page".$userdetails[1].($userdetails[1== l?" time!""times!"));
?>

           
       



HTML code for linking to this page:

Follow Navioo On Twitter

PHP Source Code

 Navioo Cookie Session
» Cookie