Back to CMSApplication class

Method checkSession

public void
checkSession
()
Checks the user session.
Returns
  • void
Since
  • 3.2
-
  • \RuntimeException

Method checkSession - Source code

/**
 * Checks the user session.
 *
 * If the session record doesn't exist, initialise it.
 * If session is new, create session variables
 *
 * @return  void
 *
 * @since   3.2
 * @throws  \RuntimeException
 */
public function checkSession()
{
    $this->getContainer()->get(MetadataManager::class)->createOrUpdateRecord($this->getSession(), $this->getIdentity());
}