Delete cookie before setting it (#167)

This commit is contained in:
Luke S Thompson
2025-10-18 17:47:46 +11:00
parent a81013bbc2
commit 49a5d7f317
2 changed files with 8 additions and 0 deletions

View File

@@ -21,6 +21,11 @@
along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
// Delete the authentication cookie, if it exists
if (isset($_COOKIE['PVEAuthCookie'])) {
unset($_COOKIE['PVEAuthCookie']);
}
if (isset($_GET['pveticket']) && isset($_GET['host']) && isset($_GET['path']) && isset($_GET['vncticket'])) {
// Take passed-in variables and re-assign for usage
$pveticket = $_GET['pveticket'];