diff options
author | Daniel Gruno <humbedooh@apache.org> | 2012-04-27 12:59:32 +0000 |
---|---|---|
committer | Daniel Gruno <humbedooh@apache.org> | 2012-04-27 12:59:32 +0000 |
commit | 8fa573336000d9ccbcc51209992c8455ea3af05a (patch) | |
tree | cf8ad4fe511e505c85bfa76c98129c7f33c3c657 /docs/manual/mod/mod_session_dbd.html.en | |
parent | a2b535121ebc90b35a0f95d83529d8cf7f4fc69b (diff) | |
download | httpd-8fa573336000d9ccbcc51209992c8455ea3af05a.tar.gz |
Even more xforms that somehow didn't trigger earlier. I wonder if they're silently revolting against me.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1331408 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'docs/manual/mod/mod_session_dbd.html.en')
-rw-r--r-- | docs/manual/mod/mod_session_dbd.html.en | 45 |
1 files changed, 30 insertions, 15 deletions
diff --git a/docs/manual/mod/mod_session_dbd.html.en b/docs/manual/mod/mod_session_dbd.html.en index fc3afde682..3364256fbb 100644 --- a/docs/manual/mod/mod_session_dbd.html.en +++ b/docs/manual/mod/mod_session_dbd.html.en @@ -97,13 +97,16 @@ session. These queries are configured as per the example below.</p> <div class="example"><h3>Sample DBD configuration</h3><p><code> - DBDriver pgsql<br /> - DBDParams "dbname=apachesession user=apache password=xxxxx host=localhost"<br /> - DBDPrepareSQL "delete from session where key = %s" deletesession<br /> - DBDPrepareSQL "update session set value = %s, expiry = %lld where key = %s" updatesession<br /> - DBDPrepareSQL "insert into session (value, expiry, key) values (%s, %lld, %s)" insertsession<br /> - DBDPrepareSQL "select value from session where key = %s and (expiry = 0 or expiry > %lld)" selectsession<br /> - DBDPrepareSQL "delete from session where expiry != 0 and expiry < %lld" cleansession<br /> + <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 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> + </code></p></div> </div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> @@ -119,8 +122,11 @@ called <var>session</var>, configure the session as follows:</p> <div class="example"><h3>SQL based anonymous session</h3><p><code> - Session On<br /> - SessionDBDCookieName session path=/<br /> + <pre class="prettyprint lang-config"> +Session On +SessionDBDCookieName session path=/ + </pre> + </code></p></div> <p>For more examples on how the session can be configured to be read @@ -150,8 +156,11 @@ userid, configure the session as follows:</p> <div class="example"><h3>SQL based per user session</h3><p><code> - Session On<br /> - SessionDBDPerUser On<br /> + <pre class="prettyprint lang-config"> +Session On +SessionDBDPerUser On + </pre> + </code></p></div> </div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> @@ -188,8 +197,11 @@ </p> <div class="example"><h3>Cookie with attributes</h3><p><code> - Session On<br /> - SessionDBDCookieName session path=/private;domain=example.com;httponly;secure;version=1;<br /> + <pre class="prettyprint lang-config"> +Session On +SessionDBDCookieName session path=/private;domain=example.com;httponly;secure;version=1; + </pre> + </code></p></div> @@ -215,8 +227,11 @@ </p> <div class="example"><h3>Cookie2 with attributes</h3><p><code> - Session On<br /> - SessionDBDCookieName2 session path=/private;domain=example.com;httponly;secure;version=1;<br /> + <pre class="prettyprint lang-config"> +Session On +SessionDBDCookieName2 session path=/private;domain=example.com;httponly;secure;version=1; + </pre> + </code></p></div> |