Sessions

Download php eBook

Syntax

  • void session_abort ( void )
  • int session_cache_expire ([ string $new_cache_expire ] )
  • void session_commit ( void )
  • string session_create_id ([ string $prefix ] )
  • bool session_decode ( string $data )
  • bool session_destroy ( void )
  • string session_encode ( void )
  • int session_gc ( void )
  • array session_get_cookie_params ( void )
  • string session_id ([ string $id ] )
  • bool session_is_registered ( string $name )
  • string session_module_name ([ string $module ] )
  • string session_name ([ string $name ] )
  • bool session_regenerate_id ([ bool $delete_old_session = false ] )
  • void session_register_shutdown ( void )
  • bool session_register ( mixed $name [, mixed $... ] )
  • void session_reset ( void )
  • string session_save_path ([ string $path ] )
  • void session_set_cookie_params ( int $lifetime [, string $path [, string $domain [, bool $secure = false [, bool $httponly = false ]]]] )
  • bool session_set_save_handler ( callable $open , callable $close , callable $read , callable $write , callable $destroy , callable $gc [, callable $create_sid [, callable $validate_sid [, callable $update_timestamp ]]] )
  • bool session_start ([ array $options = [] ] )
  • int session_status ( void )
  • bool session_unregister ( string $name )
  • void session_unset ( void )
  • void session_write_close ( void )

Remarks

Note that calling session_start() even if the session has already started will result in a PHP warning.

Related Examples

Stats

481 Contributors: 18
Monday, July 10, 2017
Licensed under: CC-BY-SA

Not affiliated with Stack Overflow
Rip Tutorial: info@zzzprojects.com

Download eBook