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 array and function?
What is the difference between pop3 IMAP and MAPI?
Is php front end or back end?
How to create a text file in PHP?
Tell us why did you choose this particular career path?
What difference between require() and require_once()?
What is the use of rand() in php?
What does the unlink() function means?
What does empty mean in php?
Tell me what is the use of "enctype" attribute in a html form?
Write a statement to show the joining of multiple comparisons in php?
What are the methods useful for method overloading?
What is the difference between query and inquiry?
Tell me what is the main difference between php 4 and php 5?
What does the unset() function means?