Q.1
The session_start() function must appear.
Q.2
Which one of the following statements should you use to set the session username to Nachi?
Q.3
What will be the output of the following PHP code? Say your previous session username was nachi.
<?php
unset($_SESSION['username']);
printf("Username now set to: %s", $_SESSION['username']);
?>
Q.4
What is the return type of session_set_save_handler() function?
Q.5
An attacker somehow obtains an unsuspecting user’s SID and then using it to impersonate the user inorder to gain potentially sensitive information. This attack is known as.
Q.6
If the directive session.cookie_lifetime is set to 3600, the cookie will live until.
Q.7
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.
Q.8
What is the default number of seconds that cached session pages are made available before the new pages are created?
Q.9
What is the default time(in seconds) for which session data is considered valid?
Q.10
Which one of the following function is used to start a session?
Q.11
Which directive sets a maximum allowable amount of memory in megabytes that a script can allow?
Q.12
If you want to temporarily store uploaded files in the /tmp/phpuploads/ directory, which one of the following statement will you use?
Q.13
Which superglobal stores a variety of information pertinent to a file uploaded to the server via a PHP script?
Q.14
How many items are available in the $_FILES array?
Q.15
Which function is used to determine whether a file was uploaded?
Q.16
Which one of the following is the very first task executed by a session enabled page?
Q.17
How many ways can a session data be stored?
Q.18
Which directive determines how the session information will be stored?
Q.19
Which one of the following is the default PHP session name?
Q.20
If session.use_cookie is set to 0, this results in use of.
0 h : 0 m : 1 s