-
1. Re: session scoped managed beans are not expiring on browser close
v.bannur Jul 22, 2011 2:05 AM (in response to v.bannur)Please any help?
-
2. Re: session scoped managed beans are not expiring on browser close
vinu1983 Jul 23, 2011 3:53 PM (in response to v.bannur)Hi,
What's your browser and version?
Vinu
-
3. Re: session scoped managed beans are not expiring on browser close
v.bannur Jul 24, 2011 5:04 AM (in response to vinu1983)Hi Vinu,
My browser is IE-7 and Mozilla FireFox-3.6.18.
Is there any issue with these versions?
Please let me know how to resolve the issue.
-
4. Re: session scoped managed beans are not expiring on browser close
vinu1983 Jul 24, 2011 10:21 AM (in response to v.bannur)Hi Vishwanath,
From IE 8 and FireFox 3 version, browser cookies are shared among browser windows.
Even if you close your browser, it still holds cookies. You need to start new browser session(In IE, goto File-> New Session) to get rid of the existing session.
Try this:
Open one session in IE and open one session in FF. See if your session is being shared? Hopefully it shouldn't.
I had the same issue.
Vinu
-
5. Re: session scoped managed beans are not expiring on browser close
v.bannur Jul 25, 2011 10:48 AM (in response to vinu1983)Hi Vinu,
I have tested opening new window, but still the session is alive.
-
6. Re: session scoped managed beans are not expiring on browser close
vinu1983 Jul 25, 2011 1:52 PM (in response to v.bannur)Hi Vishwanath,
That looks scary. Can you do the below steps and get back:
1. Close all your existing browsers.
2. Restart your app server.
3. Open an IE and login to your app.
4. Open a FF browser and login to your app with different user.
Try printing out your session bean's hash code and see if they are same or different.
Also, could you post your code?
Vinu
-
7. Re: session scoped managed beans are not expiring on browser close
v.bannur Jul 28, 2011 5:10 AM (in response to vinu1983)Hi Vinu,
My issue is when open either IE or FF and logged in to app, without logout i close the browser (either IE or FF), again i open a browser the session is not expired.
-
8. Re: session scoped managed beans are not expiring on browser close
vinu1983 Jul 28, 2011 12:56 PM (in response to v.bannur)Thats because cookies are being shared between browser windows. Try clearing your browser cookies and logging again.
You need to confirm whether this issue is caused by browser cookie sharing. JSF session managed beans, once declared as session scoped will not intervene with other sessions.
Also remember, http sessions are not bound to browsers. They are just bound to one session id. If two browsers send the same session id, your J2EE application will use the same session bean.
Vinu