You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
it doesn't work. It only works when app.sessions.use( .memory ) is used. But then the in-memory storage is used. By the way, the migration works and the tables are created in the database.
Expected behavior
Session data should get stored in the database table when for example this request.session.data[ "userID" ] = loginResponse.id.uuidString is used.
Actual behavior
Nothing happens. Nothing is saved to the database table and no error is reported.
Fix
Browser cookies had to be cleared. Then it started storing the data in the database.
Environment
Vapor Framework version: 4
Vapor Toolbox version: 3.1.10
OS version: macOS
The text was updated successfully, but these errors were encountered:
I'm having problems persisting my session data in a MySQL database.
Steps to reproduce
When I use this in configure.swift:
it doesn't work. It only works when
app.sessions.use( .memory )
is used. But then the in-memory storage is used. By the way, the migration works and the tables are created in the database.Expected behavior
Session data should get stored in the database table when for example this
request.session.data[ "userID" ] = loginResponse.id.uuidString
is used.Actual behavior
Nothing happens. Nothing is saved to the database table and no error is reported.
Fix
Browser cookies had to be cleared. Then it started storing the data in the database.
Environment
The text was updated successfully, but these errors were encountered: