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
List some array functions in php?
What is session_register()?
Explain Traits in PHP?
What does the unlink() function means?
What is php key?
What is mysqli php?
How do you trim spaces in excel?
Explain soundex() and metaphone().
What is the current php version?
Tell me what is the default session time in php?
What does the scope of variables means?
What is the use of dual table in mysql?
What is the difference between html and php?
Why do we use query?
How to break a file path name into parts?