Added the zend framework 2 library, the path is specified in line no.26 in zend_modul...
[openemr.git] / interface / modules / zend_modules / library / Zend / Session / SaveHandler / SaveHandlerInterface.php
blob4851c0c0114e8f7d8792d644ef7201eb4945a133
1 <?php
2 /**
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
8 */
10 namespace Zend\Session\SaveHandler;
12 /**
13 * SaveHandler Interface
15 * @see http://php.net/session_set_save_handler
17 interface SaveHandlerInterface
19 /**
20 * Open Session - retrieve resources
22 * @param string $savePath
23 * @param string $name
25 public function open($savePath, $name);
27 /**
28 * Close Session - free resources
31 public function close();
33 /**
34 * Read session data
36 * @param string $id
38 public function read($id);
40 /**
41 * Write Session - commit data to resource
43 * @param string $id
44 * @param mixed $data
46 public function write($id, $data);
48 /**
49 * Destroy Session - remove data from resource for
50 * given session id
52 * @param string $id
54 public function destroy($id);
56 /**
57 * Garbage Collection - remove old session data older
58 * than $maxlifetime (in seconds)
60 * @param int $maxlifetime
62 public function gc($maxlifetime);