add this to git finally

This commit is contained in:
2025-05-19 12:51:46 +03:00
parent 7a8e69d87d
commit 11b7696c19
13 changed files with 760 additions and 0 deletions

10
logout.php Normal file
View File

@ -0,0 +1,10 @@
<?php
session_start();
/* $personalDb = "db/{$_SESSION["user_id"]}.db"; */ // TODO: put it in cookie
/* if (file_exists($personalDb)) { */
/* unlink($personalDb); */
/* } */
session_unset();
session_destroy();
header("Location: /products");
?>