jsession
This variable is a proxy of Factory::getSession(). It allows to access the active session inside twig layouts.
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>