Q1: which of the variables does PHP use to authenticate a user?

Q1: which of the variables does PHP use to authenticate a user?

Ans:PHP uses the $_SESSION and $_COOKIE variables to authenticate a user. The session variable stores the user's login status and other relevant information, while the cookie variable stores a session ID that is used to authenticate the user across multiple pages.

No comments:

Post a Comment