|
Re: Browser sessions get cleared [message #492520 is a reply to message #491948] |
Tue, 20 October 2009 15:34 |
Grant Gayed Messages: 2150 Registered: July 2009 |
Senior Member |
|
|
Hi,
Session cookies are supposed to last for the lifetime of the process,
however I'm seeing inconsistent behaviours here with IE. With IE6, if I
navigate to "google.ca", set some cookies, then dispose-and-recreate the
Browser, the cookies I previously set are there in the new Browser. However
if I use "google.com" instead of "google.ca" then they are not in the new
Browser (the behaviour is page-dependent?). I'm also seeing inconsistencies
between IE6 and IE8. SWT's Mozilla- and Safari-based Browser
implementations do keep the cookies alive through the Browser
dispose-then-recreate. I've logged
https://bugs.eclipse.org/bugs/show_bug.cgi?id=292776 to investigate this
difference.
So this probably explains the difference you're seeing between machines,
they're either using different Browser implementations or different IE
versions. Hopefully I can determine what's happening in the IE case. One
workaround you can try in the meantime is to create a Browser instance
that's not shown but is never disposed, so that the Browser count never
reaches 0, and see if this keeps the session alive. The only other
workaround I can think of is to use SWT.MOZILLA-style Browsers instead, but
this of course is not a small change since it requires shipping XULRunner on
non-Linux platforms.
HTH,
Grant
"Vladimir Grishchenko" <vladgri@hotmail.com> wrote in message
news:hba8vh$t6e$1@build.eclipse.org...
> I'm using the Browser widget and seeing different behaviors on 2
computers. On one HTTP sessions are preserved whenever the last internal
browser is closed (seemingly last at least as I don't see any other active
browser) while the other looses sessions forcing user to re-login whenever
the internal browser is opened again during the same IDE session. Are
sessions/cookies supposed to be cleared upon last browser exit or not? If
not, what can cause them to be flushed?
|
|
|
|
Powered by
FUDForum. Page generated in 0.03121 seconds