Revision: 17938
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at September 17, 2009 08:22 by JREAM
Initial Code
class Session { // start session public function start() { session_start(); } public function create($name, $val) { $_SESSION[$name] = $val; } public function get($name) { if (isset($_SESSION[$name])) { return $_SESSION[$name]; } else { return false; } } public function del($name) { unset($_SESSION[$name]); } public function end() { $_SESSION = array(); session_destroy(); } }
Initial URL
http://www.jream.com
Initial Description
Initial Title
PHP Session Class (Light)
Initial Tags
class, php
Initial Language
PHP