From 5bc7772c4124f6bb243fbc9bb4f21eceae5404f2 Mon Sep 17 00:00:00 2001 From: clyhtsuriva Date: Sun, 19 Apr 2020 23:21:56 +0200 Subject: ajout session --- www/html/index.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'www/html') diff --git a/www/html/index.py b/www/html/index.py index a23a18d..caa6060 100755 --- a/www/html/index.py +++ b/www/html/index.py @@ -1,12 +1,15 @@ #!/usr/bin/python3 # -*- coding: utf-8 -*- -import mod_python +from mod_python import Session from fonctions import baseHTML, connexionBD, lien def index(req): req.content_type="text/html" + sess=Session.Session(req) + sess.save() + content=str() #sql part -- cgit v1.2.3