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
Why constructor is not overridden?
Tell me what library is used for pdf in php?
What is polymorphism with example in php?
What is the use of token in php?
What are the differences between GET and POST methods in form submitting?
In how many ways we can retrieve the data in the result set of mysql using php?
How to write php function in html onclick?
What is properties of class?
How should a model be structured in mvc?
What is a php array?
What is final in php?
What is php dependency injection?
How to update memcached when you make changes to php?
What is variable give example?
What type of headers that PHP supports?