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

How to call a php function from another php file?

931


What are the different ways to login to a remote server? Explain the me, advantages and disadvantages?

1004


What is pdo in php why use?

876


How many data types are there in php?

1036


What is string in php?

930


What is the meaning of die in php?

932


What is php used for?

922


What is the difference between rest and soap?

1047


What does $_env mean?

943


How to include variables in double-quoted strings in php?

915


How does api connect to database?

996


How to Pass JSON Data in a URL using CURL in PHP?

1011


What is scope of variable in php?

999


What is string function sql?

937


Is it possible to protect special characters in a query string?

944