From d3e261f5c1149a4232b8171f38516fa52e5cb6d9 Mon Sep 17 00:00:00 2001 From: Stricted Date: Wed, 11 Dec 2013 13:34:25 +0100 Subject: [PATCH] add my old session class --- session.class.php | 81 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 81 insertions(+) create mode 100644 session.class.php diff --git a/session.class.php b/session.class.php new file mode 100644 index 0000000..76358e4 --- /dev/null +++ b/session.class.php @@ -0,0 +1,81 @@ +. + */ +class session { + + public function __construct () { /* not needed */ } + + public function start () { + session_start(); + } + + public function status () { + return session_status(); + } + + public function destroy () { + return session_destroy(); + } + + public function unset () { + session_unset(); + } + + public function cache_expire ($new_cache_expire = '') { + session_cache_expire($new_cache_expire); + } + + public function encode () { + return session_encode(); + } + + public function decode ($data) { + return session_decode($data); + } + + public function shutdown () { + session_register_shutdown(); + session_write_close(); + } + + public function getID ($set = '') { + return session_id($set); + } + + public function cache_limiter ($cache_limiter = '') { + return session_cache_limiter($cache_limiter); + } + + public function get_cookie_params () { + return session_get_cookie_params(); + } + + public function module_name ($module = '') { + return module_name($module); + } + + public function regenerate_id ($delete_old_session = false) { + return session_regenerate_id($delete_old_session); + } + + public function save_path ($path = '') { + return session_save_path($path); + } + /* too lazy to comment this class :D */ +} +?> \ No newline at end of file -- 2.20.1