Source for file session_class.php
Documentation is available at session_class.php
* This file contains the session class.
* This file is part of HRDIODB.
* HRDIODB is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
* HRDIODB is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with HRDIODB; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
require_once("common_class.php");
* The session class is used to store and retrieve session data.
* The session class constructor. If a session hasn't been started yet, it
* starts a new, named session.
* Sets a session variable.
* A setter method to store a value in a session variable.
* @param string $key Session variable name
* @param mixed $value Session variable value
$_SESSION[$key] = $value;
* Gets a session variable.
* A getter method to retrieve the value of a session variable.
* @param string $key Session variable name
* @return mixed Session variable value
* Unsets a session variable.
* A method to unset a session variable.
* @param string $key Session variable name
* Return to last visited page.
* This method redirects the user to the last saved page. It makes the
* magic of "returning to your previous page" possible.
if ($page = $this->get_var("page")) {
|