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 use of <?php

1 Answers   CBS,


Tell me what are the functions to be used to get the image's properties (size, width and height)?

0 Answers  


Is php developer in demand?

0 Answers  


How will you calculate days between two dates in PHP?

0 Answers  


Is there an easy way to delete an element from a php array?

0 Answers  






What is sticky form in php?

0 Answers  


Is php an api?

0 Answers  


List few sensible functions in PHP?

0 Answers  


Is PHP is procedure oriented or object oriented?

10 Answers   DLF, Net Solution,


Is python similar to php?

0 Answers  


How to check a variable is an array or not in php?

0 Answers  


Explain which cryptographic extension provide generation and verification of digital signatures?

0 Answers  


Categories