Constants are available as long as the PHP process is executing.
Destructors are called before a class instance is being wiped out from
memory. But it does not remove a class or undefine a class. It works with
instance. So a class constant never gets undefined. It stays with class
definition.
I'm curious to know what the lifetime of a constant is.
I know that sounds like a stupid question, but the context is this:
I have a file I am writing to up to the very last possible micro-second. As
such, I know that as PHP is destroying itself after having executed the last
statement in the p
I just come to do some test this afternoon and here are the results.
Now : '.date('H:i:s');
?>
Reload
And here are the results :
session.use_cookie = 0;
session.gc_maxlifetime = 30; // 30 seconds
session.gc_probability = 100; // 100% => the gc is always called
On page 2, I have :
Array ( [begi
On Wed, 24 Sep 2003 11:42:12 +0200
Cranky <[EMAIL PROTECTED]> wrote:
> Hello,
> Is it possible to determine a lifetime for the session in the case
> of a cookie-less sessions ?
>
> Thanks for your help.
>
In my sessions I set an "expire time", which is the current time
(unix timestamp) plus the
session.gc_maxlifetime integer
session.gc_maxlifetime specifies the number of seconds after which
data will be seen as 'garbage' and cleaned up.
Note: If you are using the default file-based session handler,
your filesystem must keep track of access times (atime). Windows FAT
does
Becoming Digital wrote:
I just took a thorough look at the Session Handling section in the manual. I couldn't even find any mention of non-cookie session lifetimes. I get the impression they either die on broswer close or have a fixed lifetime that cannot be changed. Hopefully someone can prove
only for amusement value. ;)
Edward Dudlik
Becoming Digital
www.becomingdigital.com
- Original Message -
From: "Cranky" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, 24 September, 2003 05:42
Subject: [PHP] Lifetime with cookie-less sessions
Hello,
Is
Hello,
Is it possible to determine a lifetime for the session in the case of a
cookie-less sessions ?
Thanks for your help.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
8 matches
Mail list logo