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
iam mca post graduate in 2010 not getting job in JAVA so iam looking for carear in php as market demand is high so it is best option to try for php or not
What is $row in php?
What is pdo in php why use?
How do I repair phpmyadmin?
What is php limit?
How to access standard error stream in PHP?
List some features of php that are deprecated in php7?
What is fetch array in php?
Do you know what is the difference between the include() and require() functions?
Why should I store logs in a database rather than a file?
What is $_ get?
What does isset() function?
Write a select query that will be displayed the duplicated site name and how many times it is duplicated?
Do while loops php?
What are the differences between echo and print?