JTableSession

From Joomla! Documentation

Jump to: navigation, search

JTableSession is a concrete table class which handles data-rows of the #__session table.

Contents

Availability

From Joomla 1.5 Joomla 1.6

Defined in

/joomla/database/table/session.php

Extends

Reserved Database Field Names

The operation of this class is dependent on the existence of specially-named fields (columns) in the database table.

Field name Description
client_id
data
gid
guest Is this user a guest?
session_id Primary Key.
time
userid ID of the user
username username of the user
usertype

Methods

Method name Description
__construct Constructor. Taking table name, primary key and database-object reference.
delete Overloaded delete method
destroy Destroys the persisting session
exists Find out if a user has one or more active sessions
insert Stores the session the the session table
purge Purge old session
update Update Session data

Importing

jimport( 'joomla.database.table.session' );

See also

Personal tools