PHP Sessions


  1. What is the default number of seconds that cached session pages are made available before the new pages are created?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    The directive which determines this is session.cache_expire.


  1. If the directive session.cookie_lifetime is set to 3600, the cookie will live until..











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    The lifetime is specified in seconds, so if the cookie should live 1 hour, this directive should be set to 3600.



  1. Neglecting to set which of the following cookie will result in the cookie’s domain being set to the host name of the server which generated it.











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: A

    The directive session.cookie_domain determines the domain for which the cookie is valid.


  1. If session.use_cookie is set to 0, this results in use of..











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: B

    URL rewriting



  1. What is the default time(in seconds) for which session data is considered valid?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: A

    The session.gc_maxlifetime directive determines this duration. It can be set to any required value.