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 |
Tell me can the value of a constant change during the script's execution?
Is there any way to call a JAVASCRIPT function in PHP in AJAX
What does == mean in php?
Which is better python or php?
What does the expression exception::__tostring means?
Is it necessary to use closing tag in php?sometime without closing tag things work.why?
What is meant by urlencode and urldocode?
what is difference between PHP4 , PHP5
How do you check is php not empty?
Is php an object or array?
How to Retrieve the Session ID of the Current Session?
what is php?