• Register
Welcome to phpanswers , where you can ask questions and receive answers from other members of the community.

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

–1 vote
I'm working on a project where I want to maintain the session can anyone tell me how what is the default sessions time in PHP and if I want to change it then how do I change it pls help me
asked 2 years ago by Neeraj Narkhede (1,670 points)
edited 2 years ago by vikramapte

2 Answers

+1 vote
Default session time is 1440 seconds(24 minutes),but we can change it
through ini_set() method.

<?php
$intTime=152;
ini_set("session.gc_maxlifetime",$intTime);
?>
answered 2 years ago by Prajakta (2,025 points)
edited 2 years ago by vikramapte
0 votes
defoul time for session    out is 24 minutes  you can  chage it by   giveing the  session time value for more than 24

http://vikasbruce.blogspot.com/
answered 2 years ago by anonymous

Related questions