3 * Zend Framework (http://framework.zend.com/)
5 * @link http://github.com/zendframework/zf2 for the canonical source repository
6 * @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
7 * @license http://framework.zend.com/license/new-bsd New BSD License
10 namespace Zend\Session\SaveHandler
;
13 * SaveHandler Interface
15 * @see http://php.net/session_set_save_handler
17 interface SaveHandlerInterface
20 * Open Session - retrieve resources
22 * @param string $savePath
25 public function open($savePath, $name);
28 * Close Session - free resources
31 public function close();
38 public function read($id);
41 * Write Session - commit data to resource
46 public function write($id, $data);
49 * Destroy Session - remove data from resource for
54 public function destroy($id);
57 * Garbage Collection - remove old session data older
58 * than $maxlifetime (in seconds)
60 * @param int $maxlifetime
62 public function gc($maxlifetime);