读书人

同一程序内,所有CHtmlView 的session都

发布时间: 2012-06-19 14:45:20 作者: rapoo

同一程序内,所有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).


[解决办法]
学习

读书人网 >VC/MFC

热点推荐