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
What is overloading in php?
How does php session work?
How can we access the data sent through the url with the post method?
Write a program to display table of a number using php?
Who created numbers?
Can the value of a constant change during the script's execution?
What does echo mean in php?
Tell me how to find current date and time?
What is $_ get in php?
What is scope of variable in php?
What are the differences between require and include?
What does odbc do in context with php?
am from coimbatore.am learning php&mysql. what will be the approx salary for me if i get a job in coimbatore.
What is the best practice for running mysql queries in php? Consider the risk of sql injection.
How is it possible to remove escape characters from a string?