Computer Science Degrees Online Courses

PHP MCQ Questions

PHP MCQs - Chapter

Working with Cookies and Sessions Multiple Choice Questions and Answers PDF p. 1

Practice Working with Cookies and Sessions multiple choice questions and answers, CS quiz answers PDF to solve php test 1 for online certification. Solve how sessions work in php MCQs, Working with Cookies and Sessions Trivia Questions and answers for admission and merit scholarships test. "Working with Cookies and Sessions MCQ" PDF book: how sessions work in php, home grown alternatives, simple session code, cookies career test for top online computer science programs.

"When a session ia active, PHP provides a special constant called" Multiple Choice Questions (MCQ) on working with cookies and sessions with choices cid, sid, did, and none of them for top computer science schools in the world. Practice how sessions work in php quiz questions for jobs' assessment test and online courses for jobs' assessment test and online courses for online computer science engineering.

MCQs on Working with Cookies and Sessions Quiz

1.

When a session ia active, PHP provides a special constant called

SID
CID
DID
None of them

2.

If you want PHP to transparently handle passing session variables for you when cookies are not available, you have to configure

enable-trans-sid option
enable-track-vars option
disable-tans-vars option
Both A and B

3.

A special kind of a file that is located in the filesystem of your browser and can be read and write from the web server, is calls as

Session
Cookies
Script
All of them

4.

Using $_SESSION, $HTTP_SESSION_VARS functions can be dangerous, so that you can use

session_destroy ( )
session_unset ( )
set ( )
None of them

5.

In PHP, cookies are set by using the

setcookie ( ) function
set ( ) function
cookie_set ( ) function
None of them