LEPTON CMS 7.2.0
feel free to keep it strictly simple...
|
Public Member Functions | |
__construct () | |
Static Public Member Functions | |
static | set_cookie (string $name, string|int $value, array $options=[], bool $mustExists=false, bool $mergeDefault=true) |
static | deleteCookieSession (string $name, string|int $value="", array $options=[]) |
static | get_cookie_defaults () |
static | getConfigValuesFromIni () |
Static Public Attributes | |
static | $instance |
This file is part of LEPTON Core, released under the GNU GPL Please see LICENSE and COPYING files in your package for details, specially for terms and warranties.
NOTICE:LEPTON CMS Package has several different licenses. Please see the individual license in the header of each single file or info.php of modules and templates.
Definition at line 20 of file lepton_session.php.
|
final |
Definition at line 27 of file lepton_session.php.
|
static |
Static function to delete a cookie and SESSION: overwrite existing cookie with old expires value and empty $_SESSION
@params string $name Name of cookie @params string|int $value New cookie value @params array $options Array with settings, see PHP documentation
Definition at line 96 of file lepton_session.php.
|
static |
get cookie default settings
Session.cookie_lifetime specifies the lifetime of the cookie in seconds which is sent to the browser. The value 0 means "until the browser is closed." Defaults to 0.
session.cookie_path specifies path to set in the session cookie. Defaults to /.
Session.cookie_domain specifies the domain to set in the session cookie. Default is none at all meaning the host name of the server which generated the cookie according to cookies specification.
Session.cookie_secure specifies whether cookies should only be sent over secure connections. Defaults to off.
Session.cookie_httponly Marks the cookie as accessible only through the HTTP protocol. This means that the cookie won't be accessible by scripting languages, such as JavaScript. This setting can effectively help to reduce identity theft through XSS attacks (although it is not supported by all browsers).
Session.cookie_samesite allows servers to assert that a cookie ought not to be sent along with cross-site requests. This assertion allows user agents to mitigate the risk of cross-origin information leakage, and provides some protection against cross-site request forgery attacks. Note that this is not supported by all browsers. An empty value means that no SameSite cookie attribute will be set. Lax and Strict mean that the cookie will not be sent cross-domain for POST requests; Lax will sent the cookie for cross-domain GET requests, while Strict will not.
Definition at line 126 of file lepton_session.php.
|
static |
Definition at line 182 of file lepton_session.php.
|
static |
Static function to set a cookie.
@params string $name Name of cookie @params string|int $value New cookie value @params array $options Array with settings, see PHP documentation @params bool $mustExists Boolean true/false: set cookie only if exists @params bool $mergeDefault Boolean true/false: merge input options with defaults
Definition at line 49 of file lepton_session.php.
|
static |
Definition at line 24 of file lepton_session.php.