Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Logout Functionality #23

Open
andrew21-mch opened this issue Aug 16, 2024 · 0 comments
Open

Implement Logout Functionality #23

andrew21-mch opened this issue Aug 16, 2024 · 0 comments
Labels

Comments

@andrew21-mch
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: No status
Development

No branches or pull requests

1 participant