8

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

Your comment:
[p] [b] [i] [u] [s] [quote] [pre] [br] [code] [url] [email] strip help 2000

Enter a maximum of 2000 characters.
Improve the presentation of your text with the following formatting tags:
[p]paragraph[/p], [b]bold[/b], [i]italics[/i], [u]underline[/u], [s]strike[/s], [quote]citation[/quote], [pre]as is[/pre], [br]line break,
[url]http://www.izend.org[/url], [url=http://www.izend.org]site[/url], [email]izend@izend.org[/email], [email=izend@izend.org]izend[/email],
[code]command[/code], [code=language]source code in c, java, php, html, javascript, xml, css, sql, bash, dos, make, etc.[/code].