jsession

This variable is a proxy of Factory::getSession(). It allows to access the active session inside twig layouts.

  1. Returns
  2. Examples

Returns

Joomla\CMS\Session\Session The active session.

Examples

{# Retrieve a session token to use it in forms/urls #}
<a href="index.php?{{ jsession.getToken() }}=1">Sample link with token</a>