[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/libraries/vendor/joomla/application/src/ -> SessionAwareWebApplicationTrait.php (summary)

Part of the Joomla Framework Application Package

Copyright: Copyright (C) 2005 - 2021 Open Source Matters, Inc. All rights reserved.
License: GNU General Public License version 2 or later; see LICENSE
File Size: 112 lines (2 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 4 functions

  getSession()
  setSession()
  checkToken()
  getFormToken()

Functions
Functions that are not part of a class:

getSession()   X-Ref
Method to get the application session object.

return: SessionInterface  The session object

setSession(SessionInterface $session)   X-Ref
Sets the session for the application to use, if required.

param: SessionInterface  $session  A session object.
return: $this

checkToken($method = 'post')   X-Ref
Checks for a form token in the request.

param: string  $method  The request method in which to look for the token key.
return: boolean

getFormToken($forceNew = false)   X-Ref
Method to determine a hash for anti-spoofing variable names

param: boolean  $forceNew  If true, force a new token to be created
return: string  Hashed var name



Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer