Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Browser sessions get cleared
Browser sessions get cleared [message #491948] Fri, 16 October 2009 17:02 Go to next message
Vladimir Grishchenko is currently offline Vladimir GrishchenkoFriend
Messages: 95
Registered: July 2009
Member
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?
Re: Browser sessions get cleared [message #492520 is a reply to message #491948] Tue, 20 October 2009 15:34 Go to previous messageGo to next message
Grant Gayed is currently offline Grant GayedFriend
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?
Re: Browser sessions get cleared [message #492533 is a reply to message #491948] Tue, 20 October 2009 16:42 Go to previous message
Vladimir Grishchenko is currently offline Vladimir GrishchenkoFriend
Messages: 95
Registered: July 2009
Member
Both computers are running IE7 but slightly different update levels 7.0.5730.11 vs. 7.0.5730.13, the latter is the misbehaving one. One easy workaround is to keep Eclipse help system open, this maintains a browser instance and session cookies as you suggested.
Previous Topic:Draw text on composite
Next Topic:HTML WYSIWYG Editor
Goto Forum:
  


Current Time: Sat Dec 07 11:10:03 GMT 2019

Powered by FUDForum. Page generated in 0.02416 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top