Storing Session Data
I have drivers who essentially run deliveries. They will sign into my website and then start a route. How can I store current route id that they are doing as part of their session? The cookies page doesn't really specify very well.
https://www.better-auth.com/docs/concepts/cookies
Cookies | Better Auth
Learn how cookies are used in Better Auth.
2 Replies
Specifically, how do I set a cookie, how do I revoke a cookie. Why is that not on the page?
You can use custom session, or you can add it as additoinal field
https://www.better-auth.com/docs/concepts/database#extending-core-schema
https://www.better-auth.com/docs/concepts/session-management#customizing-session-response
Database | Better Auth
Learn how to use a database with Better Auth.
Session Management | Better Auth
Better Auth session management.