Login   Register  
PHP Classes
elePHPant
Icontem

File: encodeCookie.Example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Stanga Razvan  >  Encode Cookie  >  encodeCookie.Example.php  >  Download  
File: encodeCookie.Example.php
Role: Example script
Content type: text/plain
Description: example
Class: Encode Cookie
Manage information stored in encrypted cookies
Author: By
Last change:
Date: 2003-11-04 06:33
Size: 931 bytes
 

Contents

Class file image Download
<?

//=============================//
//                             //
//   encodeCookie v0.1         //
//   encodeCookie Example      //
//   encodeCookie.Example.php  //
//   by Stanga Razvan          //
//   razvan_stanga@yahoo.com   //
//   http://www.phprebel.org   //
//                             //
//       MADE IN ROMANIA       //
//                             //
//=============================//

/**
* class encodeCookie Example
*
* encode cookies before you send them
*
* Usage :
*
* require ('encodeCookie.Class.php');
* $eC = new encodeCookie;
* $eC->set_Cookie ($name, $value$, 1); // 1 is sticky (1 year)
* $value = $eC->get_Cookie ($name);
*
*/

require ('encodeCookie.Class.php');

$eC = new encodeCookie;

$e $eC->encodeC md5 ('password') );
$d $eC->decodeC $e );

echo 
"Original Cookie value : ".$d;
echo 
"<br><br>";
echo 
"Encoded Cookie value : ".$e;

?>