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 / rakesh kumar nautiyal

<?php
session_start();

session_cache_expire(15);
$cache_expire = session_cache_expire();

if(!isset($_SESSION['password'])){
$msg = "Your session is expired.Please re enter the
password";
header("Location: index.php?msg=".$msg);
} else {
// remaining code to display the gallery
}
?>

Is This Answer Correct ?    44 Yes 63 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When to use self over $this?

1049


What is the use of explode() function?

1116


What is the difference between substr() and strstr()?

1443


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

1253


Who created numbers?

1030


What is string in php?

1034


What is composer install?

1114


Which php framework is in demand?

952


What is the integer?

1143


What are the features of object-oriented programming in php?

969


Write a program using while loop?

1084


What are php magic methods?

1044


What is polymorphism?

2558


What is the difference between for and foreach?

1155


Write syntax to open a file in php?

1094