XCIII. Session handling functions

Úvod

Poznámka :

Poznámka :

Sessions and security

Požadavky

Tyto funkce jsou k dispozici jako součást standardního modulu , který je vždy dostupný .

Poznámka :

Instalace

Verze PHP pro Windows vestavěnou podporu pro toto rozšíření . K použití těchto funkcí není třeba načítat žádná další rozšíření .

Konfigurace běhu

Chování těchto funkcí je ovlivněno nastavením parametrů v php.ini .

Tabulka 1 .

For further details and definition of the PHP_INI_* constants see ini_set() .

session.save_handler string

session.save_path string

Varování

Poznámka :

session.name string

session.auto_start boolean

session.serialize_handler string

session.gc_probability integer

session.gc_maxlifetime integer

Poznámka :

session.referer_check string

session.entropy_file string

session.entropy_length integer

session.use_cookies boolean

session.use_only_cookies boolean

session.cookie_lifetime integer

session.cookie_path string

session.cookie_domain string

session.cookie_secure boolean

session.cache_limiter string

session.cache_expire integer

session.use_trans_sid boolean

Poznámka :

url_rewriter.tags string



Poznámka :

Typy prostředků

Toto rozšíření nemá definován žádný typ prostředku ( resource ) .

Předdefinované konstanty

Tyto konstanty jsou definovány tímto rozšířením a budou k dispozici pouze tehdy , bylo-li rozšíření zkompilováno společně s PHP nebo dynamicky zavedeno za běhu .

SID ( string )

Příklady

Poznámka :

Příklad 1 .




Příklad 2 .




Příklad 3 .






Výstraha

Příklad 4 .






Passing the Session ID



Poznámka :



Příklad 5 .










Poznámka :

Custom Session Handlers

Obsah
session_cache_expire -- Return current cache expire
session_cache_limiter -- Get and/or set the current cache limiter
session_decode -- Decodes session data from a string
session_destroy -- Destroys all data registered to a session
session_encode -- Encodes the current session data as a string
session_get_cookie_params -- Get the session cookie parameters
session_id -- Get and/or set the current session id
session_is_registered -- Find out whether a global variable is registered in a session
session_module_name -- Get and/or set the current session module
session_name -- Get and/or set the current session name
session_readonly -- Begin session - reinitializes frozen variables, but no writeback on request end
session_register -- Register one or more global variables with the current session
session_save_path -- Get and/or set the current session save path
session_set_cookie_params -- Set the session cookie parameters
session_set_save_handler -- Sets user-level session storage functions
session_start -- Initialize session data
session_unregister -- Unregister a global variable from the current session
session_unset -- Free all session variables
session_write_close -- Write session data and end session