Method and system for sharing session
The invention relates to a method and system for sharing a session. The method comprises the following steps: obtaining session data generated when a user accesses a website through a client; storing the session data as a whole in redis in the form of a Hash structure; receiving an access request of...
Gespeichert in:
1. Verfasser: | |
---|---|
Format: | Patent |
Sprache: | chi ; eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | The invention relates to a method and system for sharing a session. The method comprises the following steps: obtaining session data generated when a user accesses a website through a client; storing the session data as a whole in redis in the form of a Hash structure; receiving an access request of the client; extracting session identification included in the access request; according to the access identification, searching the redis for the corresponding session data; and according to the access request, executing corresponding operation on the searched session data. The method and system for sharing the session can reduce the network overheads, save network resources and are fast in data processing speed.
本发明涉及种实现会话共享的方法和系统。上述方法包括以下步骤:获取用户通过客户端访问网站所产生的会话数据;将所述会话数据作为整体以哈希结构存储在redis中;接收客户端的访问请求;提取所述访问请求中包含的会话标识;根据所述会话标识在所述redis中查找对应的会话数据;根据所述访问请求对查找得到的会话数据执行相应的操作。上述实现会话共享的方法和系统,能够减少网络开销,节省网络资源,且数据处理速度快。 |
---|