且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如果使用在多次用户登录不同的会话

更新时间:2023-12-01 17:38:16

我已经实现了在ASP.NET应用程序的WebForms类似的东西。它会为给定用户不同的会议,当他运行在浏览器中的多个选项卡中的应用。我使用的方法:我在登录验证函数创建一个会话ID,那么它在查询字符串参数被转移从一个网页到另一个,并存储在当前形式的ViewState

I have implemented something like that in an ASP.NET WebForms application. It creates different sessions for a given user when he runs the application in multiple tabs of a browser. The method I use: I create a SessionID in the login validation function, then it is transfered in a QueryString parameter from one page to the other, and stored in the ViewState of the current form.