Re: session.gc_maxlifetime

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




----- Original Message ----- From: "Shaw, Chris - Accenture" <cshaw@xxxxxxxxxx> To: "Gustav Wiberg" <gustav@xxxxxxxxxxxxxx>; "PHP General" <php-general@xxxxxxxxxxxxx>
Sent: Friday, September 09, 2005 7:21 PM
Subject: RE:  session.gc_maxlifetime



-----Original Message-----
From: Gustav Wiberg [mailto:gustav@xxxxxxxxxxxxxx]
Sent: 09 September 2005 14:40
To: PHP General
Subject:  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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux