<div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><div>I'm trying to implement login/logout function for my app. Both /login and /logout are designed to be resource to provide RESTful web service. I guess those functions must interact with sessions and cookies, so I've read some documents such as <a href="https://twistedmatrix.com/documents/current/web/howto/web-in-60/session-store.html" _src="https://twistedmatrix.com/documents/current/web/howto/web-in-60/session-store.html">https://twistedmatrix.com/documents/current/web/howto/web-in-60/session-store.html</a>  and</div><div><a href="https://twistedmatrix.com/documents/current/web/howto/web-in-60/session-endings.html" _src="https://twistedmatrix.com/documents/current/web/howto/web-in-60/session-endings.html">https://twistedmatrix.com/documents/current/web/howto/web-in-60/session-endings.html</a></div><div><br></div><div> However, I still can't get how to use twisted.web.server.Session in my code. Is there any demo about this? Any help is appreciated.</div></div><br><br><span title="neteasefooter"><p> </p></span>