Cookie storage #2

Closed
opened 2018-06-22 07:42:31 -04:00 by iou1name · 1 comment
Owner

Session cookies are currently stored server-side on the file system. I want to put them in the database, however. Flask-Session and Flask-KVSession only support SQL databases through SQLAlchemy, which I am not using. The options become:

  • Write my own custom session interface which stores cookies into the existing MariaDB database. Code can probably be stolen forked from Flask-Session to expedite this.

  • Use Redis / Memcached. Memory database seems to be popular with these things and might speed things up a bit. Downside is I'll have to install another database and permanent storage might be an issue?

  • Bite the bullet and install SQLAlchemy. It seems to be popular with people using Flask. Will have to re-write most of my database interface.

Session cookies are currently stored server-side on the file system. I want to put them in the database, however. Flask-Session and Flask-KVSession only support SQL databases through SQLAlchemy, which I am not using. The options become: - Write my own custom session interface which stores cookies into the existing MariaDB database. Code can probably be <s>stolen</s> forked from Flask-Session to expedite this. - Use Redis / Memcached. Memory database seems to be popular with these things and might speed things up a bit. Downside is I'll have to install another database and permanent storage might be an issue? - Bite the bullet and install SQLAlchemy. It seems to be popular with people using Flask. Will have to re-write most of my database interface.
iou1name added the
enhancement
label 2018-06-22 07:42:31 -04:00
Author
Owner

Closing this because this repository is deprecated in favor of https://git.steelbea.me/iou1name/Titivillus (which is also dead).

Closing this because this repository is deprecated in favor of https://git.steelbea.me/iou1name/Titivillus (which is also dead).
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Reference: iou1name/anonkun#2
No description provided.