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
Can we extend two classes in php?
What are php libraries?
Do you know how to get the ip address of the client?
How is session id stored in browser?
Is key exist in array php?
What is interface? Why it is used?
Explain the advantages of using PHP?
How does one prevent the following warning ‘warning: cannot modify header information – headers already sent' and why does it occur in the first place?
What is cms php?
What is is_null() in php?
Is PHP an open source software?
Describe the security vulnerability of PHP?
Why do we use php?
Tell me how can we pass the variable through the navigation between the pages?
Are php sessions secure?