----- Original Message ----- From: "Shaw, Chris - Accenture" <[EMAIL PROTECTED]> To: "Gustav Wiberg" <[EMAIL PROTECTED]>; "PHP General" <php-general@lists.php.net>
Sent: Friday, September 09, 2005 7:21 PM
Subject: RE: [PHP] session.gc_maxlifetime



-----Original Message-----
From: Gustav Wiberg [mailto:[EMAIL PROTECTED]
Sent: 09 September 2005 14:40
To: PHP General
Subject: [PHP] session.gc_maxlifetime





*************************************


This e-mail has been received by the Revenue Internet e-mail service.


*************************************


Hi there!


This setting...
session.gc_maxlifetime can only be set in php.ini
Default = 1440 = 24 minutes
is the time before a cookie expires? Is this right?


I don't have access to php.ini because it's not my server

(it's my webhost)
What's the solution to that? I want the cookie to last as

long as set inte

setcookie...


Please help... I'm a little confused here...

Surely it is:

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.

Also, I thought you could use ini_set to change your php.ini configuration
for your current script.

But I could be wrong... Did I miss read the manual?


************************

This message has been delivered to the Internet by the Revenue Internet e-mail service

*************************

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



--
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.10.19/93 - Release Date: 2005-09-08

Hi again!

Yes, I were able to change with ini_set...

I wrote it like this... Is it good? or bad?
ini_set('session.cookie_lifetime',2147483647);

I wrote that code in a script... But that won't effect the server configruation would it? Because when I try to get values from phpinfo() then 'session.cookie_lifetime' is still 0.

How do I know that it works? Is there any way of viewing the new value?

/G
http://www.varupiraten.se/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to