1

session

session_open
SYNOPSIS

session_open($name=false)

DESCRIPTION
CODE
  1. function session_open($name=false) {
  2.     if ($name) {
  3.         session_name($name);
  4.     }
  5.     session_start();
  6. }
session_close
SYNOPSIS

session_close()

DESCRIPTION
CODE
  1. function session_close() {
  2.     if (ini_get('session.use_cookies')) {
  3.         $params = session_get_cookie_params();
  4.         setcookie(session_name(), '', time() - 42000, $params['path'], $params['domain'], $params['secure'], $params['httponly']);
  5.     }
  6.  
  7.     session_destroy();
  8.     $_SESSION=array();
  9. }
session_reopen
SYNOPSIS

session_reopen()

DESCRIPTION
CODE
  1. function session_reopen($name=false) {
  2.     session_close();
  3.     session_open($name);
  4. }
session_regenerate
SYNOPSIS

session_regenerate()

DESCRIPTION
CODE
  1. function session_regenerate() {
  2.     session_regenerate_id(true);
  3. }
SEE ALSO

bootstrap

Comments

To add a comment, click here.