vB_SessionClass to handle sessions
Creates, updates, and validates sessions; retrieves user info of browsing user
Located in /includes/class_core.php (line 2592)
vB_Session
vB_Session
(vB_Registry &$registry, [string $sessionhash = ''], [integer $userid = 0], [string $password = ''], [integer $styleid = 0], [ $languageid = 0])
array
$changes
= array() (line 2630)
An array of changes. Used to prevent superfluous updates from being made.
bool
$created
= false (line 2637)
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 2644)
Reference to a vB_Registry object that keeps various data we need.
array
$userinfo
= null (line 2651)
Information about the user that this session belongs to.
array
$vars
= array() (line 2599)
The individual session variables. Equivalent to $session from the past.
boolean
$visible
= true (line 2658)
Is the sessionhash to be passed through URLs?
Constructor vB_Session (line 2669)
Constructor. Attempts to grab a session that matches parameters, but will create one if it can't.
build_query_array (line 2839)
Builds an array that can be used to build a query to insert/update the session
do_lastvisit_update (line 3043)
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 2931)
Fetches a default session. Used when creating a new session.
fetch_sessionhash (line 2903)
Fetches a valid sessionhash value, not necessarily the one tied to this session.
fetch_substr_ip (line 2915)
Returns the IP address with the specified number of octets removed
fetch_userinfo (line 2966)
Returns appropriate user info for the owner of this session.
save (line 2784)
Saves the session into the database by inserting it or updating an existing one.
set (line 2865)
Sets a session variable and updates the change list.
set_session_visibility (line 2879)
Sets the session visibility (whether session info shows up in a URL). Updates are put in the $vars member.
Documentation generated on Fri, 09 May 2008 09:00:57 -0500 by phpDocumentor 1.4.1