Page 183 - Open Soource Technologies 304.indd
P. 183
Open Source Technologies
Notes 2. Cookies are commonly used to rotate the _______________ ads.
3. The check_auth() function checks whether the username and password match with the
stored data and returns either the user id that belongs to the\ user or 0 when an error
occurred.
(a) True (b) False
4. The simplest way of setting a cookie is: setcookie(‘name’, ‘bret’);
(a) True (b) False
5. A cookie is a _______________ that is used by a server to identify a user of that server.
(a) web file (b) .datfile
(c) PHP file (d) .exe file
6. _______________ are used by default to store the session identifier.
(a) PHP (b) session function()
(c) cookies (d) identifier function
7. TSOIN is the input stream for the TSO/E function.
(a) True (b) False
8. _______________ allows an application to store information for the current “session,”
which can be defined as one user being logged in to your application.
(a) string function() (b) .exe function()
(c) cookies (d) PHP session
10.9 Review Questions
1. Define cookies.
2. How we set cookies explain with the help of program?
3. Give program of deleting cookies with PHP.
4. What are the session functions? Give their types also.
5. What is session manager function()?
6. Define starting session.
7. How we destroy session and unsetting variable? Briefly explain with the help of program.
8. What is check_auth() function?
9. What is setting of cookies in PHP?
10. Explain deleting of cookies with PHP.
178 LOVELY PROFESSIONAL UNIVERSITY