aboutsummaryrefslogtreecommitdiff
path: root/www/html
diff options
context:
space:
mode:
authorclyhtsuriva <clyhtsuriva@gmail.com>2020-04-19 23:21:56 +0200
committerclyhtsuriva <clyhtsuriva@gmail.com>2020-04-19 23:21:56 +0200
commit5bc7772c4124f6bb243fbc9bb4f21eceae5404f2 (patch)
tree728ac40d99c3cca1efb5d264c6f05430d83a9aa2 /www/html
parent7ca90af9165338c787aacee23867e592adbd0b5b (diff)
ajout session
Diffstat (limited to 'www/html')
-rwxr-xr-xwww/html/index.py5
1 files changed, 4 insertions, 1 deletions
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