Skip to content

Commit

Permalink
Update overview.md (#1741)
Browse files Browse the repository at this point in the history
  • Loading branch information
Boby900 authored Nov 8, 2024
1 parent ec7eb21 commit 504adb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/sessions/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ title: "Sessions"

# Sessions

Sessions are a way to persist state in the server. It is especially useful for managing the authentication state, such as the client's identity. We can assign each session with a unique ID and store it on the server to use it as a token. The client can then associate subsequent requests with a session, and by extension the user, by sending the its ID.
Sessions are a way to persist state in the server. It is especially useful for managing the authentication state, such as the client's identity. We can assign each session with a unique ID and store it on the server to use it as a token. The client can then associate subsequent requests with a session, and by extension, with the user, by sending its ID.

Session IDs can either be stored using cookies or local storage in browsers. We recommend using cookies since it provides some protection against XSS and the easiest to deal with overall.

Expand Down

0 comments on commit 504adb8

Please sign in to comment.