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 |
What's the output of the ucwords function in this example?
Is it possible to connect to a Microsoft Access database without a DSN? If so, how??
Hi all,, im completely new to PHP, started learning just 2 days before. Can anybody tell me how to run a PHP file to see the program's output? i have created some simple program in Dreamweaver CS3 but don't know how to run it...
What is the current php version?
What is the difference between abstract class and interface in php?
Does php 7 support mysql?
Can you use php and javascript together?
How to retrieve the original query string?
how many types of inheritance is there in php? name there?
Tell me what is the use of isset() in php?
Is null empty php?
What is global variable php?