File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes Problem in IE8 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Problem in IE8" Watch "Problem in IE8" New topic
Author

Problem in IE8

Ashit Acharya
Greenhorn

Joined: Apr 18, 2010
Posts: 6
There are two types of users in our product and we are going to certify on IE8,but facing problem due to the feature of session sharing on IE8,Like if one user login in one browser of IE8 and when another user login with another browser,later session datas are overriding the formar one.

Kindly somebody help me to resolve this.Any idea or suggessions are welcome.
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 9993
    
    7

The Ranch Office forum description says
Questions, suggestions and whining about this site. Use the other forums to ask questions about Java.

Please read this => CarefullyChooseOneForum

Moving this to a more suitable forum.


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Christophe Porteneuve
Author
Ranch Hand

Joined: Jan 28, 2008
Posts: 43
Hey there,

I'm sorry but I don't really get your issue. What's with the session sharing again? If your app uses actual session cookies, those would "die" as soon as all windows from the browser are closed, so another user coming along and opening an IE8 window later on wouldn't share anything.

What exactly is your scenario?


Christophe Porteneuve aka TDD
"They did not know it was impossible, so they did it." --Mark Twain
Pragmatic Guide to JavaScript: http://books.pragprog.com/titles/pg_js/
Prototype and script.aculo.us: http://books.pragprog.com/titles/cppsu/
Ashit Acharya
Greenhorn

Joined: Apr 18, 2010
Posts: 6
Christophe Porteneuve wrote:Hey there,

I'm sorry but I don't really get your issue. What's with the session sharing again? If your app uses actual session cookies, those would "die" as soon as all windows from the browser are closed, so another user coming along and opening an IE8 window later on wouldn't share anything.

What exactly is your scenario?



The thing is like,If in a window I am opening the gmail and in the other window,I am opening the yahoo then the previous window in which I have opened gmail becames yahoo automatically,Because of the session sharing feature in IE8.

Now Basically my application is a banking application where several users exists according to rights for example say user1=manager and user2=associate and menus are different for both the users.

Now in a window manager get logged in and got the menus of manager and in another window,associate logged in and got the menus of associate but at the same time the manager's window get changed to same as associate's window and all the menus are getting changed.


Kindly give put some lights in this.
Christophe Porteneuve
Author
Ranch Hand

Joined: Jan 28, 2008
Posts: 43
Hey there,

I'm not entirely familiar with the IE8 Session Sharing thing, but from what I gather online, it's just that IE8 preserves session across all windows and tabs of the active IE8 process, right?

Your description is much scarier. You seem to imply that there is some behavior at work where browsing to ANY URL in a given window will IMMEDIATELY REFLECT in other opened windows. I hope I got that wrong, 'cuz that's something I never heard of before and also sounds totally useless and annoying. When you have two IE8 windows open and you browse to Yahoo! in one, you don't see the other one opening Yahoo! too, do you?

I see two things here:

First, do you really have an issue? I mean, is there even a use case where a user of your app with Role A would want to use it on the same desktop as a user with Role B, without logging out this user first and logging in instead?

If that use case does happen, and you want to allow multiple independent sessions in a single use of IE8, the solution is the same regardless of the backend solution you use (I'm assuming ASP.NET, but hey, for all I know you are using PHP): go with cookieless sessions. This means that you don't rely on cookies for storing session states, but pass a serialized session state along with all your URLs. Almost all server-side technologies have easy ways to do this. For instance:

  • PHP has the session.use-trans-sid setting: http://www.php.net/manual/en/session.configuration.php#ini.session.use-trans-sid
  • ASP.NET has the sessionState tag : http://msdn.microsoft.com/en-us/library/aa479314.aspx
  • Java EE has a cookies attribute for the Context element: http://tomcat.apache.org/tomcat-5.5-doc/config/context.html#Common_Attributes
  • etc.


  • Move this discussion over to the forum for your backend technology of choice if you need assistance in setting this up and testing this.

    'HTH,
     
    I agree. Here's the link: http://aspose.com/file-tools
     
    subject: Problem in IE8
     
    Similar Threads
    Problem with session management
    Can two browsers share Session object
    Sessions
    Issue in session manegement
    need to manage sigle session for same user in differnt browser