1.

In which authentication method does changing the username or password can be done only by entering the code and making the manual adjustment.(a) Hard-coding a loginpair directly into the script(b) File-based authentication(c) Data-based authentication(d) PEAR’S HTTP authenticationThe question was posed to me during an interview.The query is from User Authentication topic in division File and Session Handling in PHP of PHP

Answer»

The CORRECT CHOICE is (a) Hard-coding a loginpair directly into the script

To elaborate: The SIMPLEST way to restrict resource access is by hard-coding the username and password directly into the script. In this authentication method, changing the username or password can be done only by entering the code and making the manual adjustment. This is one of the DRAWBACKS of hard-coding a login PAIR directly into the script.



Discussion

No Comment Found

Related InterviewSolutions