Flask Session seems to be invalidating

Posted in General by Russ Clarke Wed Oct 14 2015 10:20:40 GMT+0000 (Coordinated Universal Time)·2·Viewed 902 times

Hi, I've installed skf-flask under Apache2 as per the installation page. The problem is, I've added a user, and I can log in - but from then on, *any* action is giving me a 401 and looking at the code, it's because the session.get('logged_in') is always false. How might I resolve this?
Oct 14, 2015

Ahah, might have solved this.

I'm running this on an Azure VM (Ubuntu 15 server) and it's configured to be only available to my development subnet, so I didn't use SSL/TLS.

In this case, I just had to change SESSION_COOKIE_SECURE to False in the flask dictionary.

Nov 4, 2015

Yeah it was setup as default to only use TLS/SSL + enforcing this on the session cookie ^^

marked this as solved
Markdown is allowed