# Path: app.py



import os
import sys
from werkzeug.datastructures import CallbackDict
from flask.sessions import SessionInterface, SessionMixin
from itsdangerous import URLSafeTimedSerializer, BadSignature
from app import app
# -*- coding: utf-8 -*-
"""
    sessions.better_client_session
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    Better Client-side sessions
    http://flask.pocoo.org/snippets/51/
"""

sys.path.insert(0, os.path.dirname(os.path.abspath(os.path.dirname(__file__))))




class ItsdangerousSession(CallbackDict, SessionMixin):

    def __init__(self, initial=None):
        def on_update(self):
            self.modified = True
        CallbackDict.__init__(self, initial, on_update)
        self.modified = False


class ItsdangerousSessionInterface(SessionInterface):
    salt = 'cookie-session'
    session_class = ItsdangerousSession


# Path: app.py



# Path: sessions/better_client_session.py
import os
import sys
from werkzeug.datastructures import CallbackDict
from flask.sessions import SessionInterface, SessionMixin
from itsdangerous import URLSafeTimedSerializer, BadSignature
from app import app

# -*- coding: utf-8 -*-
"""
    sessions.better_client_session
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    Better Client-side sessions
    http://flask.pocoo.org/snippets/51/
"""

sys.path.insert(0, os.path.dirname(os.path.abspath(os.path.dirname(__file__))))




class ItsdangerousSession(CallbackDict, SessionMixin):

    def __init__(self, initial=None):
        def on_update(self):
            self.modified = True
        CallbackDict.__init__(self, initial, on_update)
        self.modified = False


class ItsdangerousSessionInterface(SessionInterface):
    salt = 'cookie-session'
    session_class = ItsdangerousSession


    def get_serializer(self, app):