logo

Crowdly

Дано код: // page1.php setcookie("user", "Ivan", time() + 3600); echo $_CO...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

Дано код:

// page1.php

setcookie("user", "Ivan", time() + 3600);

echo $_COOKIE['user'];

// page2.php (відкрили через 10 секунд після page1.php)

echo $_COOKIE['user'];

Питання:

А) Що виведе page1.php? Поясніть чому.

Б) Що виведе page2.php?

В) Як змінити код, щоб можна було перевірити значення cookie одразу після встановлення на page1.php?

More questions like this

Want instant access to all verified answers on moodle.elct.lnu.edu.ua?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!