ExamVeda
Login
Home
31
Which one of the following is the very first task executed by a session enabled page?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
32
How many ways can a session data be stored?
Discuss
Answer & Solution
Answer: Option B
Solution:
Within flat files(files), within volatile memory(mm), using the SQLite database(sqlite), or through user defined functions(user).
33
Which directive determines how the session information will be stored?
Discuss
Answer & Solution
Answer: Option D
Solution:
Its prototype follows: session.save_handler = files|mm|sqlite|user.
34
Which one of the following is the default PHP session name?
Discuss
Answer & Solution
Answer: Option A
Solution:
You can change this name by using the session.name directive.
35
If session.use_cookie is set to 0, this results in use of.
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
36
If the directive session.cookie_lifetime is set to 3600, the cookie will live until.
Discuss
Answer & Solution
Answer: Option A
Solution:
The lifetime is specified in seconds, so if the cookie should live 1 hour, this directive should be set to 3600.
37
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.
Discuss
Answer & Solution
Answer: Option D
Solution:
The directive session.cookie_domain determines the domain for which the cookie is valid.
38
What is the default number of seconds that cached session pages are made available before the new pages are created?
Discuss
Answer & Solution
Answer: Option B
Solution:
The directive which determines this is session.cache_expire.
39
What is the default time(in seconds) for which session data is considered valid?
Discuss
Answer & Solution
Answer: Option C
Solution:
The session.gc_maxlifetime directive determines this duration. It can be set to any required value.
40
Which one of the following function is used to start a session?
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board