gyro/core/lib/interfaces/isessionhandler.cls.php
Go to the documentation of this file.00001 <?php 00002 /** 00003 * A class to handle session storage and retrieval 00004 */ 00005 interface ISessionHandler { 00006 /** 00007 * Open a session 00008 */ 00009 public function open($save_path, $session_name); 00010 00011 /** 00012 * Close a session 00013 */ 00014 public function close(); 00015 00016 /** 00017 * Load session data 00018 */ 00019 public function read($key); 00020 00021 /** 00022 * Write session data to DB 00023 */ 00024 public function write($key, $value); 00025 00026 /** 00027 * Delete a session 00028 */ 00029 public function destroy($key); 00030 00031 /** 00032 * Delete outdated sessions 00033 */ 00034 public function gc($lifetime); 00035 }