cvs: peardoc /en/package/http/http-session2 cookies.xml intro.xml

[email protected] ("Till Klampaeckel")
Newsgroups php.pear.doc
Message-ID <cvstill1197894821@cvsserver>
till		Mon Dec 17 12:33:41 2007 UTC

  Modified files:              
    /peardoc/en/package/http/http-session2	cookies.xml intro.xml 
  Log:
  * fixed english :S
  * fixed a PHP error and comments
  
  
  
http://cvs.php.net/viewvc.cgi/peardoc/en/package/http/http-session2/cookies.xml?r1=1.1&r2=1.2&diff_format=u
Index: peardoc/en/package/http/http-session2/cookies.xml
diff -u peardoc/en/package/http/http-session2/cookies.xml:1.1 peardoc/en/package/http/http-session2/cookies.xml:1.2
--- peardoc/en/package/http/http-session2/cookies.xml:1.1	Sat Dec 15 17:41:51 2007
+++ peardoc/en/package/http/http-session2/cookies.xml	Mon Dec 17 12:33:41 2007
@@ -1,4 +1,4 @@
-<!-- $Revision: 1.1 $ -->
+<!-- $Revision: 1.2 $ -->
 <refentry id="package.http.http-session2.cookies">
  <refnamediv>
   <refname>Making a session persistant</refname>
@@ -9,12 +9,15 @@
  </refnamediv>
 
  <refsect1 id="package.http.http-session2.cookies.intro">
-  <title>Overview</title>
+  <title>Explaination</title>
 
   <para>
-   When you enable <classname>HTTP_Session2</classname> lets you store the session
-   data in a database making use of the <classname>DB</classname> and
-   <classname>MDB2</classname> packages.
+   <classname>HTTP_Session2</classname> provides an OO interface to standard PHP
+   session_* calls. When you create a session it needs to be referenced using a
+   sessionID. This sessionID is generally saved into a cookie to make it last 
+   across browser sessions. To extend the lifetime of this cookie (the standard is
+   that it's only valid until the browser is closed) we use PHP's
+   session_set_cookie_params.
   </para>
  </refsect1>
 
http://cvs.php.net/viewvc.cgi/peardoc/en/package/http/http-session2/intro.xml?r1=1.1&r2=1.2&diff_format=u
Index: peardoc/en/package/http/http-session2/intro.xml
diff -u peardoc/en/package/http/http-session2/intro.xml:1.1 peardoc/en/package/http/http-session2/intro.xml:1.2
--- peardoc/en/package/http/http-session2/intro.xml:1.1	Sat Dec 15 17:41:51 2007
+++ peardoc/en/package/http/http-session2/intro.xml	Mon Dec 17 12:33:41 2007
@@ -1,4 +1,4 @@
-<!-- $Revision: 1.1 $ -->
+<!-- $Revision: 1.2 $ -->
 <refentry id="package.http.http-session2.intro">
  <refnamediv>
   <refname>Introduction</refname>
@@ -24,7 +24,7 @@
   <title>A few examples</title>
 
   <example>
-   <title>Setting some options and detection of a new session</title>
+   <title>Setting options and detecting a new session</title>
 
    <programlisting role="php">
 HTTP_Session2::useCookies(false);
@@ -48,13 +48,13 @@
 
 // expired
 if (HTTP_Session2::isExpired()) {
-    echo('Your session is expired!');
+    echo 'Your session is expired!';
     HTTP_Session2::destroy();
 }
 
-// idled
+// session is idlec
 if (HTTP_Session2::isIdle()) {
-    echo 'You've been idle for too long!';
+    echo "You've been idle for too long!";
     HTTP_Session2::destroy();
 }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.