How to increase session life time using PHP?

Answer Posted / amit tiwari

The PHP global setting sessions.gc_maxlifetime is used by
default. You can increase session life time by adding a line
such as:

$SESS_LIFE=7200;

to set it to two hours.

Is This Answer Correct ?    7 Yes 23 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why many companies are switching their current business language to php? Where php basically used?

723


Explain me what is the w3c?

827


What is the default session time in php?

747


How to get the total number of values in an array?

761


What are helpers in php?

695


Explain what is the function file_get_contents() usefull for?

754


What is the use of return in php?

695


How to select a database in php?

827


Which is better wamp or xampp?

755


What is php destruct?

750


How to enable cURL in PHP?

913


How many escape sequences are recognized in double-quoted strings in php?

771


What are the php variables?

763


What is the delimiter default in PHP?

868


What is a helper function?

775