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

Answer Posted / sunny patel

Default session time is 1440 seconds,but we can change it
through ini_set() method.

$intTime=152;
ini_set("session.gc_maxlifetime",$intTime);

Is This Answer Correct ?    40 Yes 18 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why php language is used?

518


What does the scope of variables mean?

528


Tell me how can we determine whether a php variable is an instantiated object of a certain class?

556


What are the methods to submit form in php?

522


Tell me what is the difference between unset() and unlink()?

529






What is the correct php command to use to catch any error messages within the code?

568


What is framework in php?

472


Is php dying 2018?

539


A process is identified by a unique___

588


What is php built on?

499


Is numeric in php?

529


What is the correct and the most two common way to start and finish a php block of code?

521


How we get ip address of client, previous reference page etc?

552


Tell us how can we display the output directly to the browser?

576


What is a static method php?

510