PHP Classes

File: fwphp/glomodul/z_examples/book_video/03steinmetz_2008/ch08_User_and_Ses_Tracking/cookiecheck.php

Recommend this page to a friend!
  Classes of Slavko Srakocic  >  B12 PHP FW  >  fwphp/glomodul/z_examples/book_video/03steinmetz_2008/ch08_User_and_Ses_Tracking/cookiecheck.php  >  Download  
File: fwphp/glomodul/z_examples/book_video/03steinmetz_2008/ch08_User_and_Ses_Tracking/cookiecheck.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: B12 PHP FW
Manage database records with a PDO CRUD interface
Author: By
Last change:
Date: 3 months ago
Size: 251 bytes
 

Contents

Class file image Download
<?php
if (isset($_COOKIE["test"])) {
    print
"Cookies enabled.";
} else {
    if (isset(
$_REQUEST["testing"])) {
    print
"Cookies disabled.";
    } else {
   
setcookie("test", "1", 0, "/");
   
header("Location: $_SERVER[PHP_SELF]?testing=1");
    }
}
?>

For more information send a message to info at phpclasses dot org.