XCIII. Session handling functions

Introductie

Opmerking :

Opmerking :

Sessions and security

Afhankelijkheden

Deze functies zijn beschikbaar als onderdeel van de standard module die altijd beschikbaar is .

Opmerking :

Installatie

Configuratie tijdens scriptuitvoer

Het gedrag van deze functies kan worden beï vanuit php.ini .

Tabel 1 .

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

session.save_handler string

session.save_path string

Waarschuwing

Opmerking :

session.name string

session.auto_start boolean

session.serialize_handler string

session.gc_probability integer

session.gc_maxlifetime integer

Opmerking :

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

Opmerking :

url_rewriter.tags string



Opmerking :

Resource types

Deze extensie maakt geen gebruik van resources .

Voorgedefineerde constanten

Deze constanten worden gedefineerd door deze extensie , en zullen alleen beschikbaar zijn als de extensie met PHP is meegecompileerd , of als deze dynamisch is geladen vanuit een script .

SID ( string )

Voorbeelden

Opmerking :

Voorbeeld 1 .




Voorbeeld 2 .




Voorbeeld 3 .






Let op

Voorbeeld 4 .






Passing the Session ID



Opmerking :



Voorbeeld 5 .










Opmerking :

Custom Session Handlers

Inhoudsopgave
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