Re: Sessions again....
| From: | James | Date: | Thu, 04 Aug 2005 20:42:17 +0000 |
| Subject: | Re: Sessions again.... | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-220033@lists.php.net to get a copy of this message | ||
session.cookie_lifetime integer
session.cookie_lifetime specifies the lifetime of the cookie in seconds which is sent to the browser. The value 0 means "until the browser is closed." Defaults to 0. See also session_get_cookie_params() and session_set_cookie_params().
----- Original Message ----- From: "Suhas" <psuhas@gmail.com>
To: "James" <tuffguy@sympatico.ca>; "php-general" <php-general@lists.php.net>
Sent: Thursday, August 04, 2005 4:35 PM
Subject: Re: [PHP] Sessions again....
Well script is not working as it is supposed to be. Even after 2 hrs I
visit the page the count variable increases by 1 than prevois value.
Any reason why is that so? If my understanding is not correct please correct me.
Thanks
SP
On 8/4/05, James <tuffguy@sympatico.ca> wrote:
So what is your question...? ----- Original Message ----- From: "Suhas" <psuhas@gmail.com> To: "php-general" <php-general@lists.php.net> Sent: Thursday, August 04, 2005 4:13 PM Subject: [PHP] Sessions again.... Hello,I am trying to understand how sessions work. I have this code. Myunderstanding is after 1 sec of script completion, (may be little after that), the session should destroy. I understand that it is huge overhead for server, not planning to do this but want to understand how it really works. This server uses cookie to store session. Setings in php.ini file are defaut (1440 and probility is 1) ini_set('session.auto_start', '0'); session_id('SSP'); session_cache_limiter("nocache"); ini_set('session.cookie_lifetime', '0'); ini_set('session.gc_probability', '100'); ini_set('session.gc_divisor', '100'); ini_set('session.gc_maxlifetime', '1'); session_start(); if(!session_is_registered('count')) session_register('count'); echo ++$_SESSION['count']; Any help will be appriciated! Thanks SP -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php