Vidyalelo
PHP · all questions

HTML Forms Handling
practice.

Practice every MCQ with options. Use Show answers when you want the correct option and solution.

70

Questions

4/4

Page

Pick an option on a question to see the right answer and solution.

PHP sessions are created using the . . . . . function.

Select an option to see the answer and solution.

When you want to store user data in a session use the . . . . array.

Select an option to see the answer and solution.

Sessions allow you to.

Select an option to see the answer and solution.

A snapshot of the session data can be taken at any time and written out to a file.

Select an option to see the answer and solution.

When the session data is written to a file, it can be read back, decoded and applied to the current session using the . . . . function.

Select an option to see the answer and solution.

session_destroy() instantly destroy elements of the $_SESSION array.

Select an option to see the answer and solution.

Appending session data to an absolute URL does not represent a security risk.

Select an option to see the answer and solution.

If the php.ini register_globals directive is set, session data becomes available in the . . . . namespace.

Select an option to see the answer and solution.

No expiry date is set in the cookie that PHP sets for the session. The session remains current only as long as the browser is active. When the browser is restarted the cookie is not stored. This behavior can be changed by altering . . . . . setting in php.ini file.

Select an option to see the answer and solution.

session_destroy() erases all session variable.

Select an option to see the answer and solution.