PHP Sessions
- What is the default number of seconds that cached session pages are made available before the new pages are created?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
The directive which determines this is session.cache_expire.
- If the directive session.cookie_lifetime is set to 3600, the cookie will live until..
-
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.
- 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.
-
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.
- If session.use_cookie is set to 0, this results in use of..
-
View Hint View Answer Discuss in Forum
NA
Correct Option: B
URL rewriting
- What is the default time(in seconds) for which session data is considered valid?
-
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.