Computer Science, asked by RoBiNrOxY, 3 months ago

which function is used to check if a cookie is set or not.

Answers

Answered by cuteprincess1801
1

Cookies allow web applications to identify their users and track their activity. To set cookies, PHP setcookie() is used. To see whether cookies are set, use PHP isset() function.

Answered by probrainsme102
0

Answer:

isset()

Explanation:

  • The isset() is used to set up the cookies for any websites.
  • The isset() function used to check the variable is set for the session or not.
  • The this function returns true it means the variable for the session is set.
  • If the function returns false it means the variable is not set for the session.
  • The return type of this function is boolean.
  • It can only returns the true or false according to the provided conditions.
  • Is also determines that the programmer has ever make the use of that variable in the code or not.
  • It also make sure the variable did not have the null values in the script.

Example:

#SPJ3

Similar questions