![]() Server : Apache/2 System : Linux server-15-235-50-60 5.15.0-164-generic #174-Ubuntu SMP Fri Nov 14 20:25:16 UTC 2025 x86_64 User : gositeme ( 1004) PHP Version : 8.2.29 Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname Directory : /home/gositeme/.cursor-server/data/User/History/-3f9a59f0/ |
<?php
session_start();
echo "<h2>🛒 Cart Debug</h2>";
echo "<h3>Current Session State:</h3>";
echo "Session ID: " . session_id() . "<br>";
echo "<h3>Music Cart (\$_SESSION['cart']):</h3>";
if (isset($_SESSION['cart'])) {
echo "Count: " . count($_SESSION['cart']) . "<br>";
echo "<pre>" . print_r($_SESSION['cart'], true) . "</pre>";
} else {
echo "Not set<br>";
}
echo "<h3>Credit Cart (\$_SESSION['credit_cart']):</h3>";
if (isset($_SESSION['credit_cart'])) {
echo "Count: " . count($_SESSION['credit_cart']) . "<br>";
echo "<pre>" . print_r($_SESSION['credit_cart'], true) . "</pre>";
} else {
echo "Not set<br>";
}
if (isset($_GET['clear'])) {
$_SESSION['cart'] = [];
$_SESSION['credit_cart'] = [];
echo "<div style='background: green; color: white; padding: 1rem; margin: 1rem 0;'>Carts cleared!</div>";
}
echo "<br><a href='?clear=1' style='background: red; color: white; padding: 1rem; text-decoration: none; border-radius: 8px;'>Clear Both Carts</a>";
echo "<br><br><a href='cart.php'>View Cart Page</a>";
echo "<br><a href='community_fixed.php'>Back to Community</a>";
?>