user.inc

来自「PHPLOB注释详细版 使用模板技术的好帮手 PHP最有用的东东了」· INC 代码 · 共 60 行

INC
60
字号
<?php/* * Session Management for PHP3 * * Copyright (c) 1998-2000 NetUSE AG *                    Boris Erdmann, Kristian Koehntopp * * $Id: user.inc,v 1.2 2000/07/12 18:22:35 kk Exp $ * */ class User extends Session {  var $classname  = "User";         ## Needed for object serialization.  var $that_class = "Session_sql";  ## Name of data storage container  ##  ## End of parameters.  ##  var $name;                          ## Session name  var $id;                            ## Unique Session ID  var $pt = array();                  ## This Array contains the registered things  var $that;  ## get_id():  ##  ## Propagate the session id according to mode and lifetime.  ## Will create a new id if necessary. To take over abandoned sessions,  ## one may provide the new session id as a parameter (not recommended).  function get_id($id = "") {    $this->id = $id;  }    ## put_id():  ##   ## Stop using the current session id (unset cookie, ...) and  ## abandon a session.  function put_id() {    ;  }  ##  ## Initialization  ##  function start($sid = "") {    $this->get_id($sid);	    if(!isset($this->cookiename)) { $this->cookiename=""; };	$this->name = $this->cookiename == "" ? $this->classname : $this->cookiename;	$name = $this->that_class;	$this->that = new $name;	$this->that->ac_start();     $this->thaw();  }}?>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?