XCIII. Session handling functions

Introduction

Huomaa :

Huomaa :

Sessions and security

Requirements

These functions are available as part of the standard module , which is always available .

Huomaa :

Installation

Runtime Configuration

Taulu 1 .

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

session.save_handler string

session.save_path string

Varoitus

Huomaa :

session.name string

session.auto_start boolean

session.serialize_handler string

session.gc_probability integer

session.gc_maxlifetime integer

Huomaa :

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

Huomaa :

url_rewriter.tags string



Huomaa :

Resource Types

Tämä laajennus ei määrittele yhtäkään resurssi-tyyppiä .

Predefined Constants

These constants are defined by this extension , and will only be available when the extension has either been compiled into PHP or dynamically loaded at runtime .

SID ( string )

Examples

Huomaa :

Esimerkki 1 .




Esimerkki 2 .




Esimerkki 3 .






Varo

Esimerkki 4 .






Passing the Session ID



Huomaa :



Esimerkki 5 .










Huomaa :

Custom Session Handlers

Sisällys
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