1.

Which one of the following is the very first task executed by a session enabled page?(a) Delete the previous session(b) Start a new session(c) Check whether a valid session exists(d) Handle the sessionThis question was posed to me by my college director while I was bunking the class.Query is from Session Handling-1 topic in division File and Session Handling in PHP of PHP

Answer»

Right ANSWER is (c) Check whether a valid session exists

The explanation is: The session VARIABLES are set with the PHP global variable which is $_SESSION. The very first task executed by a session enabled PAGE is Check whether a valid session exists.



Discussion

No Comment Found

Related InterviewSolutions