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 is indexing how many types?
3 Answers DLF, Infosys, Net Solution, Vcare,
How to Retrieve a Cookie Value?
can you give me an example code of calling java script function in php variable using AJAX.or with out ajax??????
What is php routing?
Is overloading possible in php?
What is php written in?
hello all, I need some sample placement papers in lion bridge.. can anyone help me?
hi i am complted my b.tech and i want to learn php is php is good for my career and i want to know the salary growth on php any one can tell the answer plz and i am learning php myself it is easy to understand..........
What is the difference between session_unregister() and session_unset()?
What is the difference between echo, print and printf()?
How can you create a session in php?
Is null empty php?