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
How can I increase my website session?
what does this symbol mean in php?
Is php faster than nodejs?
Can you explain, when to use if-else if-else over switch statements?
What is the sign to start variables in PHP?
Is php coding easy?
What are the benefits of using queries?
What are the ways to include file in php?
How check variable is set or not in php?
What is var_dump?
How can we enable error reporting in php?
How do you use an array in excel?
What is config file in php?
What is the use of inner join in mysql?
Is null in php?