1.

If the directive session.cookie_lifetime is set to 3600, the cookie will live until ____________(a) 3600 sec(b) 3600 min(c) 3600 hrs(d) the browser is restartedI got this question at a job interview.Query is from Session Handling-1 in portion File and Session Handling in PHP of PHP

Answer»

Correct OPTION is (a) 3600 sec

Explanation: The LIFETIME is specified in seconds, so if the cookie should live 1 hour, this DIRECTIVE should be set to 3600.



Discussion

No Comment Found

Related InterviewSolutions