how set session expire time in php?

Answers were Sorted based on User's Feedback



how set session expire time in php?..

Answer / bharanikumar

go to php.ini , set the time limit for the session

Is This Answer Correct ?    9 Yes 5 No

how set session expire time in php?..

Answer / prakash.matte

Question is not for ini file and not for unsetting, it is
for changing the session life time from php file.

ini_set("session.gc_maxlifetime", number_of_seconds);

We can override the php.ini settings (if we don't have
access) from php file using ini_set()

Is This Answer Correct ?    2 Yes 0 No

how set session expire time in php?..

Answer / naiju

unset("username" "timeout",60)

Is This Answer Correct ?    2 Yes 1 No

how set session expire time in php?..

Answer / bharanikumar

u feel u dont have access php.ini , then go with .http ,

make changes



Post your question here also ,

www.happylife.in

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More PHP Interview Questions

What are the uses of implode() function?

0 Answers  


Which function gives us the number of affected entries by a query?

0 Answers  


Give any ten basic functions in PHP?

4 Answers   T3 Softwares,


What does echo mean in php?

0 Answers  


What is the use of preg_match in php?

0 Answers  






What is the difference between require_once and require in php?

0 Answers  


How should a model be structured in mvc?

0 Answers  


How is it possible to return a value from a function?

0 Answers  


What is php ci?

0 Answers  


How do you compare strings in java?

0 Answers  


Is python easier than php?

0 Answers  


What is mean by RSS?How can i use this?

1 Answers   TCS,


Categories