https://github.com/sake92/spring-session-example
Example of using spring-session project
https://github.com/sake92/spring-session-example
Last synced: 12 months ago
JSON representation
Example of using spring-session project
- Host: GitHub
- URL: https://github.com/sake92/spring-session-example
- Owner: sake92
- Created: 2019-12-24T13:23:03.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-12-24T20:51:30.000Z (over 6 years ago)
- Last Synced: 2025-04-05T18:51:25.495Z (over 1 year ago)
- Language: Java
- Size: 54.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
First load the Postman collection.
You can create, login, logout a user via **user-service** on port 8081.
A simple service called **advertisement-service** is available on port 8082.
Session is shared via common H2 database.
When you log in, you have access to current user from other (micro)services!
When you log out, user is logged out automatically from all services!
### UI
Since this microservice uses regular HTTP session, almost no action is required from UI.
UI needs to create 2 forms (register and login) and 1 button (logout).
The rest is handled by SESSION cookie.
When user logs in, SESSION cookie is automatically sent to server in each request (this is done by browser).