vB_SessionClass to handle sessions
Creates, updates, and validates sessions; retrieves user info of browsing user
Located in /includes/class_core.php (line 3132)
vB_Session
vB_Session
(vB_Registry &$registry, [string $sessionhash = ''], [integer $userid = 0], [string $password = ''], [integer $styleid = 0], [integer $languageid = 0])
array
$changes
= array() (line 3170)
An array of changes. Used to prevent superfluous updates from being made.
bool
$created
= false (line 3177)
Whether the session was created or existed previously
array
$db_fields
= array(A list of variables in the $vars member that are in the database. Includes their types.
vB_Registry
$registry
= null (line 3184)
Reference to a vB_Registry object that keeps various data we need.
array
$userinfo
= null (line 3191)
Information about the user that this session belongs to.
array
$vars
= array() (line 3139)
The individual session variables. Equivalent to $session from the past.
boolean
$visible
= true (line 3198)
Is the sessionhash to be passed through URLs?
Constructor vB_Session (line 3210)
Constructor. Attempts to grab a session that matches parameters, but will create one if it can't.
build_query_array (line 3380)
Builds an array that can be used to build a query to insert/update the session
do_lastvisit_update (line 3584)
Updates the last visit and last activity times for guests and registered users (differently).
Last visit is set to the last activity time (before it's updated) only when a certain time has lapsed. Last activity is always set to the specified time.
fetch_session (line 3472)
Fetches a default session. Used when creating a new session.
fetch_sessionhash (line 3444)
Fetches a valid sessionhash value, not necessarily the one tied to this session.
fetch_substr_ip (line 3456)
Returns the IP address with the specified number of octets removed
fetch_userinfo (line 3507)
Returns appropriate user info for the owner of this session.
save (line 3325)
Saves the session into the database by inserting it or updating an existing one.
set (line 3406)
Sets a session variable and updates the change list.
set_session_visibility (line 3420)
Sets the session visibility (whether session info shows up in a URL). Updates are put in the $vars member.
Documentation generated on Tue, 26 Jan 2010 15:15:06 -0600 by phpDocumentor 1.4.3