A PHP Error was encountered

Severity: Warning

Message: fopen(/var/cpanel/php/sessions/ea-php56/PHPSESSID7hsv29jaucrsg4ifbq9prph7m42mtfud): failed to open stream: No space left on device

Filename: drivers/Session_files_driver.php

Line Number: 174

What will be the output of the following PHP code? Say your previous session username was nachi
Q:

What will be the output of the following PHP code? Say your previous session username was nachi

belongs to collection: SESSION HANDLING IN PHP MCQ

0

What will be the output of the following PHP code? Say your previous session username was nachi.

unset($_SESSION['username']);
printf("Username now set to: %s", $_SESSION['username']);

  1. Username now set to: nachi
  2. Username now set to: System
  3. Username now set to:
  4. Error

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

 (c).Username now set to:

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

SESSION HANDLING IN PHP MCQ

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
An attacker somehow obtains an unsuspecting user... >>
<< Which one of the following statements should you u...

A PHP Error was encountered

Severity: Warning

Message: Unknown: Failed to write session data (user). Please verify that the current setting of session.save_path is correct (/var/cpanel/php/sessions/ea-php56)

Filename: Unknown

Line Number: 0