What is the default session time in PHP and how can I
change it?

Answer Posted / amit beniwal

Default session in php is 1440 second. we can change it through
$sessLimit="14400";
ini_set(session.gc_maxlifetime,$sessLimit);

Is This Answer Correct ?    43 Yes 21 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

explain php variable length argument function.

573


What is php and its advantages?

518


How to read the entire file into a single string?

568


A process is identified by a unique___

589


Tell me how would you declare a function that receives one parameter name hello?

532






How to call javascript function in php without any event?

489


What is php7?

620


Explain me difference between mysql_connect and mysql_pconnect?

542


How to get a total number of rows available in the table?

481


Why do we use htaccess and where?

559


What are the final class and final method?

528


What is a php certification?

493


How to set a page as a home page in a php based site?

514


Which cryptographic functions in php returns the longest hash value?

572


What's the output of the ucwords function in this example?

548