I am using flask-login https://github.com/maxcountryman/flask-login and the field remember in login_user does not seem to work.
The session gets destroyed after every restart of the apache ..ideally the remember field should take care of this.. even the session values gets destroyed. this is really frustrating... anyone knowing the solution please ping .. thanks i am using login_user as
login_user(user, remember=True)
you have to set the get_auth_token in the user mixen as well as the user_loader
And
Both of those methods use the module itsdangerous to encrypt the remember me cookie
I wrote a blog post about how I did it Flask-Login Auth Tokens
If anyone is suffering with this problem, you have to write the function user_loader properly.
I ran into this issue, but it was because we were setting
Flask.secret_key
to a new GUID on startup. We moved this to a configuration file (unique ID per environment) and now the session is persisted.