Skip to content

Conversation

@Saniya777-byte
Copy link

Implemented session-based authentication in Express.js with three routes:
POST /login → validates credentials, creates session.
GET /profile → returns welcome message if logged in.
GET /logout → destroys session and clears cookie.
Tested with proper status codes (200, 401, 500).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant