What is the default session time in PHP and how can I
change it?
Answer Posted / ketan kamdar
default session time in PHP is 1440 seconds, and we can
change using following way.
1) we can change in php.ini
2) ini_set(session_gc_maxlifetime, 1200);
3) using .htaccess:
php_value session.gc_maxlifetime 1200
| Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
What is the default session out time?
What are the functions to be used to get the image's properties (size, width and height)?
What is rest api in php?
What does pear stand for?
What are the delimiters in php?
In PHP, fgets() is used to read a file one line at a time. State Whether True or False?
What is cookie?
What is the use of offset in mysql?
Code to open file download dialog in PHP?
What is baseurl?
Is php worth learning in 2019?
Is not null in php?
Tell me what is the use of the function htmlentities?
What is php compared to html?
What is api example?