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 asort php?
Explain some most commonly use string functions in php?
What are the functions used in php?
How to connect to a url in php?
Explain the differences between get and post methods?
How we load all classes that placed in different directory in one php file , means how to do auto load classes.
What is xss and csrf?
What is difference between explode() or split() in PHP?
How can we get ip address of a client in php?
What is a query in php?
What is trim function in php?
Tell me how can I display text with a php script?
How to open a file for writing?
Explain different sorting function in php?
Tell me what are the correct and the most two common way to start and finish a php block of code?