1.

How many predefined variables does PHP use to authenticate a user?(a) 1(b) 2(c) 3(d) 4The question was posed to me at a job interview.My question is taken from User Authentication topic in division File and Session Handling in PHP of PHP

Answer»

Correct answer is (B) 2

The explanation is: The variables PHP USE to authenticate a user are $_SERVER[‘PHP_AUTH_USER’] and $_SERVER[‘PHP_AUTH_PW’].



Discussion

No Comment Found

Related InterviewSolutions