I've a simple question. After my user is logged of i want to show a popup. The problem here is that php code runs before the javascript code. Is there a way to show my popup after i redirect?
<head>
<script src="https://cdnjs.cloudflare.com/ajax/libs/sweetalert/2.1.2/sweetalert.min.js"></script>
</head>
<?php
session_start();
session_destroy();
header("Location: Login.html");
echo '<script>swal("Oops..", "Because of inactivity, you where logged off", "info")</script>';
?>