how to set session expire(session timeout) using php code
Answer Posted / er
$sessdir = ini_get('session.save_path');
if (!is_dir($sessdir)) { mkdir($sessdir, 0777); }
ini_set('session.save_path', $sessdir);
ini_set('session.gc_maxlifetime', 1);
| Is This Answer Correct ? | 34 Yes | 23 No |
Post New Answer View All Answers
What is the super method?
Explain about require and include function?
What is php explain?
Write a program in php to find the occurrence of a word in a string?
What is the best website to learn php?
What are the differences between require and include?
Which is used to maintain the value of a variable over different pages?
Explain the difference between unlink() and unset()?
What is a closure in php?
What is abstract class in php?
What is session data?
Is server side a session?
How can we get the error when there is a problem to upload a file?
When are you supposed to use endif to end the conditional statement?
Which function would you use to read a line of data from a file in php?