๐Ÿ” Session Debug Tool

FiveM Department Management System - Troubleshooting

๐Ÿ” Login Status

Logged In: NO
User ID: NOT SET
Username: NOT SET
Permission Level: NOT SET

๐Ÿ—„๏ธ Database Status

Connection: SUCCESS
User Count: 2

๐Ÿ“ File Check

config.php: EXISTS
department_config.php: EXISTS
header.php: EXISTS
footer.php: EXISTS
login.php: EXISTS
dashboard.php: EXISTS

๐Ÿ”‘ Session Data ($_SESSION)

Empty

โš™๏ธ Session Configuration

Array
(
    [Session ID] => ce1d1f3ca7e2490e35b5525aef76857d
    [Session Status] => 2
    [Session Name] => PHPSESSID
    [Session Save Path] => /var/cpanel/php/sessions/ea-php80
    [Session Cookie Params] => Array
        (
            [lifetime] => 86400
            [path] => /
            [domain] => 
            [secure] => 
            [httponly] => 1
            [samesite] => 
        )

)

๐Ÿช Cookies ($_COOKIE)

Empty

๐Ÿ–ฅ๏ธ Server Environment

Array
(
    [PHP Version] => 8.0.30
    [Server Software] => Apache
    [Document Root] => /home/patrolde/public_html
    [Script Filename] => /home/patrolde/public_html/session_test.php
    [Request URI] => /session_test.php
    [HTTP Host] => patroldeskrp.com
    [HTTPS] => Yes
)

๐Ÿ“ฅ GET Parameters ($_GET)

Empty

๐Ÿ“ค POST Data ($_POST)

Empty

๐Ÿ”‘ Go to Login ๐Ÿ  Try Dashboard ๐Ÿ—‘๏ธ Clear Session ๐Ÿงช Test Demo Login

๐Ÿ”ง Troubleshooting Tips

If you're experiencing redirect loops:

  • Check if session data is being properly set (see Session Data above)
  • Verify database connection is working (see Database Status above)
  • Ensure all required files exist (see File Check above)
  • Clear your browser cookies and cache
  • Use the "Clear Session" button above

Common Issues:

  • Headers already sent: Check for any output before session_start()
  • Session not persisting: Check session.save_path permissions
  • Redirect loop: Ensure login.php doesn't redirect logged-in users to itself
  • Database errors: Verify config.php database credentials

Next Steps:

  1. If logged in: Try accessing dashboard.php
  2. If not logged in: Try the Test Demo Login button
  3. If still issues: Clear session and try manual login

Debug tool generated at 2025-06-27 18:32:58 | PHP 8.0.30 | Session ID: ce1d1f3ca7e2490e35b5525aef76857d