What is the default session time in PHP and how can I
change it?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
In How many ways can u represent Not equal?Give Syntax of all ways..
Explain me what is the meaning of a persistent cookie?
How is the comparison of objects done in php?
How to generate a character from an ascii value?
What does $_server means?
Tell me how can I display text with a php script?
Is php faster than python?
•What is the difference between “mysql_fetch_array” and “mysql_fetch_object?
I just installed php 5.3.1 in my linux server and now my old work which i used to write with tags is not working at all.. Please help me out.. How can i resolve this??
recurring account in PayPal payment gateway?
1 Answers A1 Technology, HBL, HBL Power Systems, IBM,
Explain some of the php array functions?
How do you destroy a session?