How to increase session life time using PHP?
Answers were Sorted based on User's Feedback
Answer / swapna
increase session life time in php.ini.session_time_limit().
Is This Answer Correct ? | 32 Yes | 11 No |
Answer / ram
Increase session.gc_maxlifetime in php.ini file from 1440 to
18000 (5 hrs) and restart the webserver.
Is This Answer Correct ? | 21 Yes | 3 No |
Answer / pcoder
use
ini_set(’session.gc_maxlifetime’, ‘28800′);// Set
maxlifetime to 4 hours
Is This Answer Correct ? | 19 Yes | 9 No |
Answer / raheem
You can. just open php.ini file and change
session.cookie_lifetime = 0
Is This Answer Correct ? | 16 Yes | 9 No |
Answer / puneet bhatt
If you want to increase the lifetime of sessions on your
server, you need to edit the php.ini file which is usually
found in the /etc/ directory, but it may be different on
your server.
Is This Answer Correct ? | 8 Yes | 7 No |
Answer / 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 |
How we load all classes that placed in different directory in one php file , means how to do auto load classes.
What is the purpose of destructor ?
Explain what are some new features introduced in php7?
Explain do you use composer? If yes, what benefits have you found in it?
can anyone explain oops concept in php or give website to learn this concept clearly?
What is super () python?
how can i find number of rows in a table using MS Access and php? i used odbc_num_rows($query); but it returned -1.
I need to know about the courses which are useful in corporate companies.. especially php/mySQL, Java/j2ee, .NET.. also tell if any other courses are valuable
What do you mean by MVC ?
How do you create an array in php?
Explain Constant in Class?
What are new features in php 7?