diff options
Diffstat (limited to 'docs/manual/mod/mod_session_dbd.html.en')
-rw-r--r-- | docs/manual/mod/mod_session_dbd.html.en | 34 |
1 files changed, 12 insertions, 22 deletions
diff --git a/docs/manual/mod/mod_session_dbd.html.en b/docs/manual/mod/mod_session_dbd.html.en index e355ca63..b8311a76 100644 --- a/docs/manual/mod/mod_session_dbd.html.en +++ b/docs/manual/mod/mod_session_dbd.html.en @@ -9,7 +9,7 @@ <link href="../style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" /> <link href="../style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" /> <link href="../style/css/manual-print.css" rel="stylesheet" media="print" type="text/css" /><link rel="stylesheet" type="text/css" href="../style/css/prettify.css" /> -<script src="../style/scripts/prettify.js" type="text/javascript"> +<script src="../style/scripts/prettify.min.js" type="text/javascript"> </script> <link href="../images/favicon.ico" rel="shortcut icon" /></head> @@ -97,15 +97,13 @@ to update an existing session, to insert a new session, and to delete an expired or empty session. These queries are configured as per the example below.</p> - <div class="example"><h3>Sample DBD configuration</h3><pre class="prettyprint lang-config"> -DBDriver pgsql + <div class="example"><h3>Sample DBD configuration</h3><pre class="prettyprint lang-config">DBDriver pgsql DBDParams "dbname=apachesession user=apache password=xxxxx host=localhost" DBDPrepareSQL "delete from session where key = %s" deletesession DBDPrepareSQL "update session set value = %s, expiry = %lld, key = %s where key = %s" updatesession DBDPrepareSQL "insert into session (value, expiry, key) values (%s, %lld, %s)" insertsession DBDPrepareSQL "select value from session where key = %s and (expiry = 0 or expiry > %lld)" selectsession -DBDPrepareSQL "delete from session where expiry != 0 and expiry < %lld" cleansession - </pre> +DBDPrepareSQL "delete from session where expiry != 0 and expiry < %lld" cleansession</pre> </div> </div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> @@ -120,10 +118,8 @@ DBDPrepareSQL "delete from session where expiry != 0 and expiry < %lld" clean table called <var>apachesession</var>, and save the session ID in a cookie called <var>session</var>, configure the session as follows:</p> - <div class="example"><h3>SQL based anonymous session</h3><pre class="prettyprint lang-config"> -Session On -SessionDBDCookieName session path=/ - </pre> + <div class="example"><h3>SQL based anonymous session</h3><pre class="prettyprint lang-config">Session On +SessionDBDCookieName session path=/</pre> </div> <p>For more examples on how the session can be configured to be read @@ -152,10 +148,8 @@ SessionDBDCookieName session path=/ table called <var>apachesession</var>, and with the session keyed to the userid, configure the session as follows:</p> - <div class="example"><h3>SQL based per user session</h3><pre class="prettyprint lang-config"> -Session On -SessionDBDPerUser On - </pre> + <div class="example"><h3>SQL based per user session</h3><pre class="prettyprint lang-config">Session On +SessionDBDPerUser On</pre> </div> </div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> @@ -191,10 +185,8 @@ SessionDBDPerUser On Apache. Ensure that your attributes are defined correctly as per the cookie specification. </p> - <div class="example"><h3>Cookie with attributes</h3><pre class="prettyprint lang-config"> -Session On -SessionDBDCookieName session path=/private;domain=example.com;httponly;secure;version=1; - </pre> + <div class="example"><h3>Cookie with attributes</h3><pre class="prettyprint lang-config">Session On +SessionDBDCookieName session path=/private;domain=example.com;httponly;secure;version=1;</pre> </div> @@ -219,10 +211,8 @@ SessionDBDCookieName session path=/private;domain=example.com;httponly;secure;ve Apache. Ensure that your attributes are defined correctly as per the cookie specification. </p> - <div class="example"><h3>Cookie2 with attributes</h3><pre class="prettyprint lang-config"> -Session On -SessionDBDCookieName2 session path=/private;domain=example.com;httponly;secure;version=1; - </pre> + <div class="example"><h3>Cookie2 with attributes</h3><pre class="prettyprint lang-config">Session On +SessionDBDCookieName2 session path=/private;domain=example.com;httponly;secure;version=1;</pre> </div> @@ -356,7 +346,7 @@ var comments_identifier = 'http://httpd.apache.org/docs/2.4/mod/mod_session_dbd. } })(window, document); //--><!]]></script></div><div id="footer"> -<p class="apache">Copyright 2013 The Apache Software Foundation.<br />Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.</p> +<p class="apache">Copyright 2014 The Apache Software Foundation.<br />Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.</p> <p class="menu"><a href="../mod/">Modules</a> | <a href="../mod/directives.html">Directives</a> | <a href="http://wiki.apache.org/httpd/FAQ">FAQ</a> | <a href="../glossary.html">Glossary</a> | <a href="../sitemap.html">Sitemap</a></p></div><script type="text/javascript"><!--//--><![CDATA[//><!-- if (typeof(prettyPrint) !== 'undefined') { prettyPrint(); |