first commit
This commit is contained in:
67
ZeedFramework/library/Zeed/Session/Storage/Interface.php
Normal file
67
ZeedFramework/library/Zeed/Session/Storage/Interface.php
Normal file
@@ -0,0 +1,67 @@
|
||||
<?php
|
||||
/**
|
||||
* iNewS Project
|
||||
*
|
||||
* LICENSE
|
||||
*
|
||||
* http://www.inews.com.cn/license/inews
|
||||
*
|
||||
* @category iNewS
|
||||
* @package ChangeMe
|
||||
* @subpackage ChangeMe
|
||||
* @copyright Copyright (c) 2008 Zeed Technologies PRC Inc. (http://www.inews.com.cn)
|
||||
* @author xSharp ( GTalk: xSharp@gmail.com )
|
||||
* @since Apr 2, 2010
|
||||
* @version SVN: $Id$
|
||||
*/
|
||||
|
||||
interface Zeed_Session_Storage_Interface
|
||||
{
|
||||
/**
|
||||
* Open Session - retrieve resources
|
||||
*
|
||||
* @param string $save_path
|
||||
* @param string $name
|
||||
*/
|
||||
public function open($save_path, $name);
|
||||
|
||||
/**
|
||||
* Close Session - free resources
|
||||
*
|
||||
*/
|
||||
public function close();
|
||||
|
||||
/**
|
||||
* Read session data
|
||||
*
|
||||
* @param string $id
|
||||
*/
|
||||
public function read($id);
|
||||
|
||||
/**
|
||||
* Write Session - commit data to resource
|
||||
*
|
||||
* @param string $id
|
||||
* @param mixed $data
|
||||
*/
|
||||
public function write($id, $data);
|
||||
|
||||
/**
|
||||
* Destroy Session - remove data from resource for
|
||||
* given session id
|
||||
*
|
||||
* @param string $id
|
||||
*/
|
||||
public function destroy($id);
|
||||
|
||||
/**
|
||||
* Garbage Collection - remove old session data older
|
||||
* than $maxlifetime (in seconds)
|
||||
*
|
||||
* @param int $maxlifetime
|
||||
*/
|
||||
public function gc($maxlifetime);
|
||||
}
|
||||
|
||||
|
||||
// End ^ LF ^ encoding
|
||||
Reference in New Issue
Block a user