What is the default session time in PHP and how can I
change it?
Answer Posted / archana
ini_set('session.gc_maxlifetime', 14400);
ini_set('session.gc_probability', 1);
ini_set('session.gc_divisor', 100);
add above codes in index.php. it will work.
changing php.ini value is not a good way.it will not work.
| Is This Answer Correct ? | 4 Yes | 3 No |
Post New Answer View All Answers
Write a program to get lcm of two numbers using php?
What is lamp in php?
Explain the difference between urlencode and urldecode?
Where to put php files in apache server?
What is cms php?
What is the actually used php version?
What is abstract class php?
What is string in php?
How can we upload a file in php?
What is the differences between $a != $B and $a !== $B?
What is the difference between characters 23 and x23?
Is php class name case sensitive?
Write a program in php to reverse a number?
How come the code works, but doesn’t for two-dimensional array of mine?
Which array function checks if the particular key exists in the array?