Back to Behavior class

Method keepalive

public static void
keepalive
()
Keep session alive, for example, while editing or creating an article.
Returns
  • void
Since
  • 1.5
Deprecated
  • 5.0
Class: Behavior
Project: Joomla

Method keepalive - Source code

/**
 * Keep session alive, for example, while editing or creating an article.
 *
 * @return  void
 *
 * @since   1.5
 *
 * @deprecated 5.0  Use Joomla\CMS\WebAsset\WebAssetManager::enable();
 */
public static function keepalive()
{
    Factory::getApplication()->getDocument()->getWebAssetManager()->useScript('keepalive');
}