8
session
session_open
SYNOPSIS
session_open($name=false)
DESCRIPTION
CODE
- function session_open($name=false) {
- if ($name) {
- session_name($name);
- }
- session_start();
- }
session_close
SYNOPSIS
session_close()
DESCRIPTION
CODE
- function session_close() {
- if (ini_get('session.use_cookies')) {
- $params = session_get_cookie_params();
- setcookie(session_name(), '', time() - 42000, $params['path'], $params['domain'], $params['secure'], $params['httponly']);
- }
- session_destroy();
- $_SESSION=array();
- }
session_reopen
SYNOPSIS
session_reopen()
DESCRIPTION
CODE
- function session_reopen($name=false) {
- session_close();
- session_open($name);
- }
session_regenerate
SYNOPSIS
session_regenerate()
DESCRIPTION
CODE
- function session_regenerate() {
- session_regenerate_id(true);
- }
Comments