File: ex1.php

Recommend this page to a friend!
  Classes of Mike Frank  >  Secure Session Class  >  ex1.php  >  Download  
File: ex1.php
Role: Example script
Content type: text/plain
Description: Example
Class: Secure Session Class
Set and get session variables using encryption
Author: By
Last change:
Date: 12 years ago
Size: 227 bytes
 

Contents

Class file image Download
<?php
require 'class.eyesecuresession.phps';

// Create a session
$ses = new EyeSecureSession('somepassword');

// Store a value
$ses->set('name', 'Lois');

// Retrieve a value
echo $ses->get('name'); // prints "Lois"

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