ãµã³ãã«ã¯åãã»ãã·ã§ã³ã®éã¯ã¢ã¯ã»ã¹ãã度ã«è¡¨ç¤ºãããæ°åãã«ã¦ã³ãã¢ãããããã¨ãããã®ãã¢ããªã±ã¼ã·ã§ã³ã«ã¯ Bottle ã使ã£ãã #!/usr/bin/env python # -*- coding: utf-8 -*- import bottle from beaker.middleware import SessionMiddleware session_opts = { 'session.type': 'file', 'session.data_dir': './data', 'session.cookie_expires': True, 'session.auto': True } @bottle.route('/') def test(): session = bottle.request.environ.get('beaker.session') session['
{{#tags}}- {{label}}
{{/tags}}