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 to check an key is exists in array?
What is the use of pear in php?
Tell me is it possible to submit a form with a dedicated button?
What language is php based on?
How does php serialize work?
Who is the father or inventor of php?
How can you make a connection with mysql server using php?
How to Pass JSON Data in a URL using CURL in PHP?
So if md5() generates the most secure hash, why would you ever use the less secure crc32() and sha1()?
How to strip whitespace (or other characters) from the beginning and end of a string?
What are the different opening and closing tags available in PHP?
What are php keywords?
Can I write php code in html file?
Write a php function to convert all null values to blank?
What does the arrow mean in php?