|
|
|
date: Thu, 17 Apr 2008 00:39:15 +0800,
group: microsoft.public.inetsdk.programming.webbrowser_ctl
back
Re: Help,Igor,can i workthrough the persistent cookie problem in this way?
"susan" <none> wrote in message
news:CA5C0B2C-F2F9-420A-B341-C72946121358@microsoft.com
> Because the persistent cookie is per-user basis.
> So, can I create an thread(not process) running in another user
> account to get a separate persistent cookie from the current user's?
I don't know, really. I'm pretty sure running a separate process under
different account would work, but not so sure about just a single thread
(I assume you plan to do something like ImpersonateLoggedOnUser).
WinInet routinely creates and uses worker threads, possibly maintains a
thread pool containing threads that were created before the
impersonation. A request may be handled by one of these threads, which
would then write the cookie under a "wrong" user profile. I don't quite
see how one can avoid this.
--
With best wishes,
Igor Tandetnik
With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925
date: Wed, 16 Apr 2008 13:27:28 -0400
author: Igor Tandetnik
|
|