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
Explain me what is the meaning of a persistent cookie?
How to protect special characters in query string?
How to convert strings to numbers in php?
How do you display the output directly to the browser?
What does nan stand for computer science?
Explain about the data types in PHP?
What is form validation in php?
Whether php supports microsoft sql server?
How is it possible to return a value from a function?
What is polymorphism?
When to use get and post request?
What is a php certification?
How many types of inheritances used in php and how we achieve it.
Does PHP 5 support exceptions? State Whether True or False?
Explain the difference between $message and $$message?