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 to get the number of characters in a string?
What good is polymorphism?
Explain me how to include a file to a php page?
Which variable declarations within a class is invalid in php?
i got this error msg in online... how to solve this problem... i couldnot find out as soon as possible send me answer or idea COULD NOT ABLE TO CONNECT DATABASE . Can't connect to local MySQL server through socket '/usr/local/mysql-5.0/data/mysql.sock' (2)
please send me the interview questions and answers to my mail id : srikanthgovardana@yahoo.com or srikanthgovardana@gmail.com
for image work which library?
What are the three classes of errors that can occur in php?
What is isset and unset in php?
Is it more secure to use cookies to transfer session ids?
Tell me which programming language does php resemble to?
What the difference between the 'bitwise and' operator and the 'logical and' operator?