首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > VC/MFC >

同一程序内,所有CHtmlView 的session都相同,如何让session不同

2012-06-19 
同一程序内,所有CHtmlView 的session都相同,怎么让session不同?写了一个程序,在程序中创建了多个CHtmlView

同一程序内,所有CHtmlView 的session都相同,怎么让session不同?
写了一个程序,在程序中创建了多个CHtmlView,但是每个View的session都相同,互相干扰,怎么解决?   希望每个CHtmlView有各自独立的Session.

[解决办法]
session cookie是只存在内存中的cookie,由底层的winINet管理的。所以每个进程都有不同的session cookie.要想多session,只能开进程。
[解决办法]
Internet Explorer maintains a session count that tracks the number of instances of the browser window in the logon session. Whenever the logon session count becomes 0, the process that closes the last window ends the Internet session by calling the InternetSetOption function (INTERNET_OPTION_END_BROWSER_SESSION).


[解决办法]
学习

热点排行