API15:JTableSession/insert
From Joomla! Documentation
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.
Description:JTableSession/insert
Contents |
Syntax
insert($sessionId, $clientId)
| Parameter Name | Default Value | Description |
|---|---|---|
| $sessionId | ||
| $clientId |
Defined in
libraries/joomla/database/table/session.php
Importing
jimport( 'joomla.database.table.session' );
Source Body
function insert($sessionId, $clientId) { $this->session_id = $sessionId; $this->client_id = $clientId; $this->time = time(); $ret = $this->_db->insertObject( $this->_tbl, $this, 'session_id' ); if( !$ret ) { $this->setError(strtolower(get_class( $this ))."::". JText::_( 'store failed' ) ."<br />" . $this->_db->stderr()); return false; } else { return true; } }
[Edit See Also] SeeAlso:JTableSession/insert
Examples
<CodeExamplesForm />
