NEW
Font size
Worksheetsphp-get,post,session ,cookie
Total questions: 15
Worksheet time: 8mins
In PHP, cookies are set by using the
setcookie() function
set() function
cookie_set() function
A period of time during which a particular person, views a number of web pages at a particular machine is called as a
session
cookie
parsing
Name, value, expire, path, httponly, domain, secure all of these are arguments of
session()
cookie()
setcookie()
To initiate a session which function is used?
start()
session_start()
session_str()
f you want to free all variables in a session, which function you can use
session_destroy()
session_unset()
set()
When you use the $_GET variable to collect data, the data is visible to..
none
everyone
only you
When you use the $_POST variable to collect data, the data is visible to..
noone
every one
only you
Which two predefined variables are used to retrieve information from forms?
$GET & $POST
$_GET & $_POST
&_GET & &_POST
Which of the following method is suitable when you need to send larger form submissions?
GET
POST
BOTH
A cookie is often used to identify a
USER
BROWSER
WEB PAGE
5. Which is a small file that the server embeds on the user's computer
SESSION
COOKIE
FILE
A session starts with the function
session()
session_strt()
session_start()
Session variables are set with the PHP global variable
$SESSION[]
$_SESSION[]
&SESSION
In POST method the results at a given moment cannot be
SAVED
MOVE
BOOKMARKED
If the directive session.cookie_lifetime is set to 3600, the cookie will live until ____________
3600 sec
3600 mint
3600 hrs
