Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

Can we extend two classes in php?

1050


What are php libraries?

926


Do you know how to get the ip address of the client?

1141


How is session id stored in browser?

998


Is key exist in array php?

987


What is interface? Why it is used?

1029


Explain the advantages of using PHP?

1003


How does one prevent the following warning ‘warning: cannot modify header information – headers already sent' and why does it occur in the first place?

918


What is cms php?

945


What is is_null() in php?

1053


Is PHP an open source software?

1053


Describe the security vulnerability of PHP?

1034


Why do we use php?

950


Tell me how can we pass the variable through the navigation between the pages?

984


Are php sessions secure?

968