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?

Answers were Sorted based on User's Feedback



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

Answer / bharanikumar

@Ashutosh Kumar

create flag field in login table,
Write error counter, check when error counter greater than
3, then write update query and change the flag field value
to disable, while check the login check this filed, it
should not be disable value.

Is This Answer Correct ?    3 Yes 6 No

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

Answer / kuldeep verma

it is true that by default time of session 140 sec. and we
can change in php.ini....
it is also depend on brower. when closing the brower then
session lost. session data will be deleted after session
timeout.if connection lost. And recreate the connection then
it session continue.......

Is This Answer Correct ?    17 Yes 28 No

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

Answer / 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

More PHP Interview Questions

Is there any function to find repeated value in an array? What is w2 standard

1 Answers  


What is the current stable version of php? What advance thing in php7?

0 Answers  


What is the use of die in php?

0 Answers  


Is numeric in php?

0 Answers  


How can we find the number of rows in a result set using PHP?

2 Answers  


What are the differences between GET and POST methods?

0 Answers  


Tell me how do you define a constant?

0 Answers  


Why do we use session?

0 Answers  


Would you initialize your strings with single quotes or double quotes?

4 Answers  


What are hooks in php?

0 Answers  


Explain me soundex() and metaphone()?

0 Answers  


Tell me whether it is possible to share a single instance of a memcache between multiple php projects?

0 Answers  


Categories