![]() Then after the cookie is set, the client will be uniquely identifiable by the server as long as: To maintain these sessions, nuxt-session sets a cookie with a unique client id for the currently connected client. The nuxt-session maintains sessions: Persistent data across different requests by the same client (or: "user"). You can also have a look at the playground code to see how to use nuxt-session in your app. # -> open Copy to clipboard Documentationįirst of all: Try out the playground if you want to test-drive this package and learn how to use it. See the playground to interactively use this: PlaygroundĪn example page making use of nuxt-session: Read the documentation if you want to learn about the library without starting your local environment. Use the module-playground (see playground below) to play around with the module. ✔️ Automatic session and storage cleanup on expiry.✔️ Storage via unjs/unstorage - use memory, redis, fs, cloudflare-kv.PATCH /api/session: Add to the current session data.POST /api/session: Overwrite the current session data.DELETE /api/session: Delete the current session.GET /api/session: Get the current session.✔️ Configurable session endpoints out of the box:. ![]() ✔️ useSession composable for client side session-interaction.✔️ Persistent sessions across requests using cookies.The nuxt-session library provide many helpers to interact with the session from the client- and server-side For more documentation and examples look at the documentation Features Return all session data to the frontendĮxport default eventHandler(event => ) ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |