RE: [PHP] getting sessions lifetime
| From: | Taylor, Stewart | Date: | Sun, 29 Apr 2001 13:17:39 +0000 |
| Subject: | RE: [PHP] getting sessions lifetime | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-50806@lists.php.net to get a copy of this message | ||
You can get the lifetime of a session cookie by calling the
get_cookie_params function
http://www.php.net/manual/en/function.session-get-cookie-params.php.
How do you propose to hit a hidden frame just before the session times out?
A better solution would be to increase the session cookie timeout value so
that long enough for your purposes.
I think you can do this by creating a new cookie variable with the lifetime
that you require. Then set the cookie value with the current session_id.
And finally start your sessions with the following code.
session_id($yourcookie);
session_start();
-Stewart
-----Original Message-----
From: Jens Kisters [mailto:newsletters@rosomm-partner.de]
Sent: 29 April 2001 13:06
To: php-general@lists.php.net
Subject: [PHP] getting sessions lifetime
Hi there!
Is there a way to determine the session timeout of the currents servers
PHP configuration, e.g. by reading values from the php.ini?
i want to manage the timeout of the session myself, no matter what the
server is set to, i want to try to hit a session page in a hidden frame
just before the session would time out so that there won't be a session
timeout.
--
Grüße aus dem schönen Kleve
Jens Kisters
rosomm et partner
Agentur für neue Medien GmbH
Dienstleistungszentrum am
Weißen Tor - Eingang B
Gocher Landstrasse 2
47551 Kleve / Bedburg-Hau
Telefon: 02821 - 97856-20
Telefax: 02821 - 97856-77
j.kisters@rosomm-partner.de
http://www.rosomm-partner.de
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net