skye8-tech / openFolio-v1-functional

0 stars 11 forks source link

Implement Logout Functionality #23

Open andrew21-mch opened 1 month ago

andrew21-mch commented 1 month ago

Create a logout feature that allows users to securely end their session and be redirected to the login page. This functionality will ensure that users can safely log out of their accounts and their session data is cleared.

Steps to Complete:

Develop a logout.php file that handles the logout process. In logout.php, destroy the user session using session_destroy() and session_unset() functions to clear session data. Redirect users to the login page after successfully logging out. Ensure that the logout functionality is accessible via a button or link on the user interface (e.g., on the dashboard or navigation menu).

Acceptance Criteria:

Users can log out successfully, with their session data cleared. After logging out, users are redirected to the login page. The logout option is visible and accessible from the user interface.