change session name for multiple shops
This commit is contained in:
1
shop.py
1
shop.py
@@ -21,6 +21,7 @@ CODEFINDER = re.compile(r'\`([^\`]+)\`')
|
|||||||
# create our little application :)
|
# create our little application :)
|
||||||
app = Flask(__name__)
|
app = Flask(__name__)
|
||||||
app.config.from_object(__name__)
|
app.config.from_object(__name__)
|
||||||
|
app.config['SESSION_COOKIE_NAME'] = os.getenv('SESSION_COOKIE_NAME', 'mdshop')
|
||||||
app.wsgi_app = ReverseProxied(app.wsgi_app)
|
app.wsgi_app = ReverseProxied(app.wsgi_app)
|
||||||
|
|
||||||
def connect_db():
|
def connect_db():
|
||||||
|
|||||||
Reference in New Issue
Block a user