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 |
How many data types are there in php?
how to store date to database
What is php mainly used for?
Who is the father or inventor of php?
How many records can be stored in mysql table?
What is csrf token in php?
What is php and how do you use it?
How long does a php session last for?
Who is the father of PHP and explain the changes in PHP versions?
15 Answers ADISoft Tech, Genpact, PropTiger, TWA,
What does csrf token mean?
What is session php?
What is php artisan serve?