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

From: Date: Tue, 16 Sep 2008 13:14:29 +0000
Subject: cvs: peardoc /en/package/http/http-session2 cookies.xml
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-11088@lists.php.net to get a copy of this message
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();

« previous php.pear.doc (#11088) next »