how to set session expire(session timeout) using php code
Answers were Sorted based on User's Feedback
Answer / 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 |
Is php 5.6 secure?
Is PHP runs on different platforms (Windows, Linux, Unix, etc.)?
Explain about the connective abilities of the PHP?
What is framework in php for beginners?
Tell me what types of loops exist in php?
Is json a string php?
How to pass an argument to a function?
Is php an object or array?
Tell us why did you choose this particular career path?
What is difference between static and final in php?
How to register a variable in PHP session?
What is better .net or php?