Maybe we don't understand each other.
Catalin Trifu wrote:
Hi,
It does not.
session.gc_maxlifetime states that PHP will consider
that garbage, but it will not inform you it did so,
No it will not inform you and there is no way it can inform you because
the gc does not know how t
Hi,
It does not.
session.gc_maxlifetime states that PHP will consider
that garbage, but it will not inform you it did so, neither does
it terminate the session.
Make an experimet if you want. set the "timeout" 5 minutes,
go for a coffee and come back in 10 minutes. You'll have
Let me corect you.
Catalin Trifu wrote:
Hi,
No, there is not! You have to manage yourself
the timeout, for instance through a timestamp,
which you verify on each request. PHP does not
destry sessions by itself.
Yes, it does, check your session.gc_maxlifetime setting (gc stands for
g
Hi,
No, there is not! You have to manage yourself
the timeout, for instance through a timestamp,
which you verify on each request. PHP does not
destry sessions by itself. It's up to you to manage
the "life" of a session.
if($_SESSION['last_seen'] && ($_SESSION['last_seen'] < time(
> I'm writing a web survey in php and trying to set session timeouts. I have
> a main script that starts the session and displays the pages. Is there a
> way I can make the session timeout if they idle for too long?
Check the php.ini file, it has some settings to set the session timeout.
Other t
my favorite way "to session" people is by sticking an MD5 hash string to
every browser (except the once having it already) as a cookie valid for the
next 32 years or so. Then I log their actions in a database. This way I can
practically do any kind of checks as long as user accepts cookies, other
6 matches
Mail list logo