Our source is open
The syntax highlighted source is automatically generated by PHP from
the plaintext script.
If you're interested in what's behind the several functions we
used, you can always take a look at the source of the following files:
Of course, if you want to see the source
of this page, we have it available.
You can also browse the SVN repository for this website on
svn.php.net.
Source of: /manual/en/book.session.php
<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/refs.basic.session.inc";
$setup = array (
'home' =>
array (
0 => 'index.php',
1 => 'PHP Manual',
),
'head' =>
array (
0 => 'UTF-8',
1 => 'en',
),
'this' =>
array (
0 => 'book.session.php',
1 => 'Sessions',
),
'up' =>
array (
0 => 'refs.basic.session.php',
1 => 'Session Extensions',
),
'prev' =>
array (
0 => 'function.msession-unlock.php',
1 => 'msession_unlock',
),
'next' =>
array (
0 => 'intro.session.php',
1 => 'Introduction',
),
);
$setup["toc"] = $TOC;
$setup["parents"] = $PARENTS;
manual_setup($setup);
manual_header();
?>
<div>
<h1 class="title">Session Handling</h1>
<ul class="chunklist chunklist_book"><li><a href="intro.session.php">Introduction</a></li><li><a href="session.setup.php">Installing/Configuring</a><ul class="chunklist chunklist_book chunklist_children"><li><a href="session.requirements.php">Requirements</a></li><li><a href="session.installation.php">Installation</a></li><li><a href="session.configuration.php">Runtime Configuration</a></li><li><a href="session.resources.php">Resource Types</a></li></ul></li><li><a href="session.constants.php">Predefined Constants</a></li><li><a href="session.examples.php">Examples</a><ul class="chunklist chunklist_book chunklist_children"><li><a href="session.examples.basic.php">Registering a variable with $_SESSION.</a></li><li><a href="session.idpassing.php">Passing the Session ID</a></li><li><a href="session.customhandler.php">Custom Session Handlers</a></li></ul></li><li><a href="session.security.php">Sessions and security</a></li><li><a href="ref.session.php">Session Functions</a><ul class="chunklist chunklist_book chunklist_children"><li><a href="function.session-cache-expire.php">session_cache_expire</a> — Return current cache expire</li><li><a href="function.session-cache-limiter.php">session_cache_limiter</a> — Get and/or set the current cache limiter</li><li><a href="function.session-commit.php">session_commit</a> — Alias of session_write_close</li><li><a href="function.session-decode.php">session_decode</a> — Decodes session data from a string</li><li><a href="function.session-destroy.php">session_destroy</a> — Destroys all data registered to a session</li><li><a href="function.session-encode.php">session_encode</a> — Encodes the current session data as a string</li><li><a href="function.session-get-cookie-params.php">session_get_cookie_params</a> — Get the session cookie parameters</li><li><a href="function.session-id.php">session_id</a> — Get and/or set the current session id</li><li><a href="function.session-is-registered.php">session_is_registered</a> — Find out whether a global variable is registered in a session</li><li><a href="function.session-module-name.php">session_module_name</a> — Get and/or set the current session module</li><li><a href="function.session-name.php">session_name</a> — Get and/or set the current session name</li><li><a href="function.session-regenerate-id.php">session_regenerate_id</a> — Update the current session id with a newly generated one</li><li><a href="function.session-register.php">session_register</a> — Register one or more global variables with the current session</li><li><a href="function.session-save-path.php">session_save_path</a> — Get and/or set the current session save path</li><li><a href="function.session-set-cookie-params.php">session_set_cookie_params</a> — Set the session cookie parameters</li><li><a href="function.session-set-save-handler.php">session_set_save_handler</a> — Sets user-level session storage functions</li><li><a href="function.session-start.php">session_start</a> — Initialize session data</li><li><a href="function.session-unregister.php">session_unregister</a> — Unregister a global variable from the current session</li><li><a href="function.session-unset.php">session_unset</a> — Free all session variables</li><li><a href="function.session-write-close.php">session_write_close</a> — Write session data and end session</li></ul></li></ul></div><?php manual_footer(); ?>