references:joomla.framework:application:japplication-setsessionTable of Contents
setSession
Creates the user session. Old sessions are flushed based on the configuration value for the cookie lifetime. If there is an existing session, then the last access time is updated. If it is a new session, then the session id is generated and a record is created in the #__sessions table. This method is called by the Joomla! core and should not need to be invoked by extensions. Syntaxvoid setSession ( $name )
ExamplesThis method is called in the following way by the Joomla! core (index.php): Example $mainframe->setSession( $mainframe->getCfg('live_site').$mainframe->getClientId() ); Note that unique sessions are created for the various clients. |


