diff options
author | André Malo <nd@apache.org> | 2014-02-05 23:28:30 +0100 |
---|---|---|
committer | André Malo <nd@apache.org> | 2014-02-05 23:28:30 +0100 |
commit | cc5367ee69671c28f3e20d0d33b3b3c2898fc156 (patch) | |
tree | 40870a6d91c4d4b236fb54f4d3268bb4003d56cf /docs/manual/mod/mod_session.html.en | |
parent | this is not a quote. (diff) | |
download | apache2-cc5367ee69671c28f3e20d0d33b3b3c2898fc156.tar.xz apache2-cc5367ee69671c28f3e20d0d33b3b3c2898fc156.zip |
update transformation
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1564960 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'docs/manual/mod/mod_session.html.en')
-rw-r--r-- | docs/manual/mod/mod_session.html.en | 42 |
1 files changed, 14 insertions, 28 deletions
diff --git a/docs/manual/mod/mod_session.html.en b/docs/manual/mod/mod_session.html.en index 9ce8168dca..bf03a7d273 100644 --- a/docs/manual/mod/mod_session.html.en +++ b/docs/manual/mod/mod_session.html.en @@ -159,10 +159,8 @@ where the session will be stored. In this example, the session will be stored on the browser, in a cookie called <code>session</code>.</p> - <div class="example"><h3>Browser based session</h3><pre class="prettyprint lang-config"> -Session On -SessionCookieName session path=/ - </pre> + <div class="example"><h3>Browser based session</h3><pre class="prettyprint lang-config">Session On +SessionCookieName session path=/</pre> </div> <p>The session is not useful unless it can be written to or read from. The @@ -170,24 +168,20 @@ SessionCookieName session path=/ the use of a predetermined HTTP response header called <code>X-Replace-Session</code>.</p> - <div class="example"><h3>Writing to a session</h3><pre class="prettyprint lang-config"> -Session On + <div class="example"><h3>Writing to a session</h3><pre class="prettyprint lang-config">Session On SessionCookieName session path=/ -SessionHeader X-Replace-Session - </pre> +SessionHeader X-Replace-Session</pre> </div> <p>The header should contain name value pairs expressed in the same format as a query string in a URL, as in the example below. Setting a key to the empty string has the effect of removing that key from the session.</p> - <div class="example"><h3>CGI to write to a session</h3><pre class="prettyprint lang-sh"> -#!/bin/bash + <div class="example"><h3>CGI to write to a session</h3><pre class="prettyprint lang-sh">#!/bin/bash echo "Content-Type: text/plain" echo "X-Replace-Session: key1=foo&key2=&key3=bar" echo -env - </pre> +env</pre> </div> <p>If configured, the session can be read back from the HTTP_SESSION @@ -195,12 +189,10 @@ env has to be explicitly turned on with the <code class="directive"><a href="#sessionenv">SessionEnv</a></code> directive.</p> - <div class="example"><h3>Read from a session</h3><pre class="prettyprint lang-config"> -Session On + <div class="example"><h3>Read from a session</h3><pre class="prettyprint lang-config">Session On SessionEnv On SessionCookieName session path=/ -SessionHeader X-Replace-Session - </pre> +SessionHeader X-Replace-Session</pre> </div> <p>Once read, the CGI variable <code>HTTP_SESSION</code> should contain @@ -220,11 +212,9 @@ SessionHeader X-Replace-Session placed on the browser using the <code class="module"><a href="../mod/mod_session_crypto.html">mod_session_crypto</a></code> module.</p> - <div class="example"><h3>Browser based encrypted session</h3><pre class="prettyprint lang-config"> -Session On + <div class="example"><h3>Browser based encrypted session</h3><pre class="prettyprint lang-config">Session On SessionCryptoPassphrase secret -SessionCookieName session path=/ - </pre> +SessionCookieName session path=/</pre> </div> <p>The session will be automatically decrypted on load, and encrypted on @@ -258,11 +248,9 @@ SessionCookieName session path=/ <p>Standard cookie parameters can be specified after the name of the cookie, as in the example below.</p> - <div class="example"><h3>Setting cookie parameters</h3><pre class="prettyprint lang-config"> -Session On + <div class="example"><h3>Setting cookie parameters</h3><pre class="prettyprint lang-config">Session On SessionCryptoPassphrase secret -SessionCookieName session path=/private;domain=example.com;httponly;secure; - </pre> +SessionCookieName session path=/private;domain=example.com;httponly;secure;</pre> </div> <p>In cases where the Apache server forms the frontend for backend origin servers, @@ -281,16 +269,14 @@ SessionCookieName session path=/private;domain=example.com;httponly;secure; <code class="module"><a href="../mod/mod_auth_form.html">mod_auth_form</a></code> saves the user's login name and password within the session.</p> - <div class="example"><h3>Form based authentication</h3><pre class="prettyprint lang-config"> -Session On + <div class="example"><h3>Form based authentication</h3><pre class="prettyprint lang-config">Session On SessionCryptoPassphrase secret SessionCookieName session path=/ AuthFormProvider file AuthUserFile conf/passwd AuthType form AuthName realm -#... - </pre> +#...</pre> </div> <p>See the <code class="module"><a href="../mod/mod_auth_form.html">mod_auth_form</a></code> module for documentation and complete |