繁体   English   中英

如何使Webkit SessionStore与数据库一起使用?

[英]How to make webkit SessionStore to work with database?

我想创建一个与WebKit服务器的SessionStore类一起使用的python类,以将会话数据保存到数据库,有人知道该怎么做吗? 提前致谢。

H

一种实现方法是使用类继承

class SessionStoreDb(Webkit.SessionStore):
    def storeSession_db(self, session):
        #use this method to store session data in your database

这将创建一个新类SessionStoreDb,该类“继承” Webkit.SessionStore的所有方法,并添加一个新方法storeSessoin_db。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM