summaryrefslogtreecommitdiffstats
path: root/system/libraries/Session/SessionHandlerInterface.php
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2014-05-31 15:08:30 +0200
committerAndrey Andreev <narf@devilix.net>2014-05-31 15:08:30 +0200
commit47a47fb9fafdb26206d01d846d8013f6e883eb37 (patch)
treef4965d3685f9937c6b1b529c3c51777062d7fe01 /system/libraries/Session/SessionHandlerInterface.php
parentf8b6180f37841362d28e78eb25aaf38c55da0839 (diff)
Initial version of new Session library
Diffstat (limited to 'system/libraries/Session/SessionHandlerInterface.php')
-rw-r--r--system/libraries/Session/SessionHandlerInterface.php51
1 files changed, 51 insertions, 0 deletions
diff --git a/system/libraries/Session/SessionHandlerInterface.php b/system/libraries/Session/SessionHandlerInterface.php
new file mode 100644
index 000000000..7473ff8ec
--- /dev/null
+++ b/system/libraries/Session/SessionHandlerInterface.php
@@ -0,0 +1,51 @@
+<?php
+/**
+ * CodeIgniter
+ *
+ * An open source application development framework for PHP 5.2.4 or newer
+ *
+ * NOTICE OF LICENSE
+ *
+ * Licensed under the Open Software License version 3.0
+ *
+ * This source file is subject to the Open Software License (OSL 3.0) that is
+ * bundled with this package in the files license.txt / license.rst. It is
+ * also available through the world wide web at this URL:
+ * http://opensource.org/licenses/OSL-3.0
+ * If you did not receive a copy of the license and are unable to obtain it
+ * through the world wide web, please send an email to
+ * licensing@ellislab.com so we can send you a copy immediately.
+ *
+ * @package CodeIgniter
+ * @author EllisLab Dev Team
+ * @copyright Copyright (c) 2008 - 2014, EllisLab, Inc. (http://ellislab.com/)
+ * @license http://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
+ * @link http://codeigniter.com
+ * @since Version 3.0
+ * @filesource
+ */
+defined('BASEPATH') OR exit('No direct script access allowed');
+
+/**
+ * SessionHandlerInterface
+ *
+ * PHP 5.4 compatibility interface
+ *
+ * @package CodeIgniter
+ * @subpackage Libraries
+ * @category Sessions
+ * @author Andrey Andreev
+ * @link http://codeigniter.com/user_guide/libraries/sessions.html
+ */
+interface SessionHandlerInterface {
+
+ public function open($save_path, $name);
+ public function close();
+ public function read($session_id);
+ public function write($session_id, $session_data);
+ public function destroy($session_id);
+ public function gc($maxlifetime);
+}
+
+/* End of file SessionHandlerInterface.php */
+/* Location: ./system/libraries/Session/SessionHandlerInterface.php */ \ No newline at end of file