[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pear-doc
Subject:    [PEAR-DOC] cvs: peardoc /en/package/http/http-session2 cookies.xml
From:       "Till Klampaeckel" <till () php ! net>
Date:       2008-09-16 13:14:29
Message-ID: cvstill1221570869 () cvsserver
[Download RAW message or body]

till		Tue Sep 16 13:14:29 2008 UTC

  Modified files:              
    /peardoc/en/package/http/http-session2	cookies.xml 
  Log:
  * fixed #13855
  
http://cvs.php.net/viewvc.cgi/peardoc/en/package/http/http-session2/cookies.xml?r1=1.5&r2=1.6&diff_format=u
                
Index: peardoc/en/package/http/http-session2/cookies.xml
diff -u peardoc/en/package/http/http-session2/cookies.xml:1.5 \
                peardoc/en/package/http/http-session2/cookies.xml:1.6
--- peardoc/en/package/http/http-session2/cookies.xml:1.5	Mon Dec 17 21:03:03 2007
+++ peardoc/en/package/http/http-session2/cookies.xml	Tue Sep 16 13:14:29 2008
@@ -1,4 +1,4 @@
-<!-- $Revision: 1.5 $ -->
+<!-- $Revision: 1.6 $ -->
 <refentry id="package.http.http-session2.cookies">
  <refnamediv>
   <refname>Making a session persistent</refname>
@@ -49,8 +49,8 @@
 HTTP_Session2::useCookies(true);
 
 HTTP_Session2::start('s');
-HTTP_Session2::setExpire(time() + 60*60*24); // set expire in 24 hours
-HTTP_Session2::setIdle(time() + 60*60);      // set idle to 1 hour
+HTTP_Session2::setExpire(60*60*24); // set expire in 24 hours
+HTTP_Session2::setIdle(60*60);      // set idle to 1 hour
 
 if (HTTP_Session2::isExpired()) {
     HTTP_Session2::destroy();



-- 
PEAR Documentation List Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic