how can handle session in falcon...any docs or tutorial might helpfull

205 views
Skip to first unread message

suh...@fortraiz.com

unread,
Nov 30, 2016, 4:03:04 AM11/30/16
to Falcon Framework
how can handle session in falcon...any docs or tutorial might helpfull

Kurt G. | @kgriffs

unread,
Dec 2, 2016, 2:18:49 PM12/2/16
to Falcon Framework
Hi, while Falcon does not provide session management itself, you can use Beaker to wrap your instance of falcon.API, e.g.:

session_opts = {
   
'session.type': 'ext:memcached',
   
'session.url': '10.176.199.101:11211;10.176.199.102:11211',
   
'session.cookie_expires': True,
}

wsgi_app
= SessionMiddleware(falcon_app, session_opts)
Reply all
Reply to author
Forward
0 new messages