diff options
author | clyhtsuriva <clyhtsuriva@gmail.com> | 2020-04-19 23:21:56 +0200 |
---|---|---|
committer | clyhtsuriva <clyhtsuriva@gmail.com> | 2020-04-19 23:21:56 +0200 |
commit | 5bc7772c4124f6bb243fbc9bb4f21eceae5404f2 (patch) | |
tree | 728ac40d99c3cca1efb5d264c6f05430d83a9aa2 /www/html | |
parent | 7ca90af9165338c787aacee23867e592adbd0b5b (diff) |
ajout session
Diffstat (limited to 'www/html')
-rwxr-xr-x | www/html/index.py | 5 |
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 |