Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to handle session on click of close button of a Browser window

DebarghyaAug 22 2016 — edited Sep 21 2016

Hi All,

We have an existing application build in ADF where we have implemented ADF Security

In this process we have save some of the logged in user's data in session.

Now we dont want user to work on two/more tabs in a same browser session.

So we have restrict the user for not using multiple tabs by checking the values and redirect them to a different page where it is stating that the user already has an active window open.

Now the problem scenario is even if the user close the tab it hold the session values and not allowing the user to go to application home page, instead it is redirecting to the other page.

So the user has to logged out from the application and login again.

For this we have tried to implement javascript so that can handle the event if the user close the window and update a in a variable.

But on that close event this java script is not getting called everytime.

Basically what we are looking for is if the user closes the exiting working tab, he will be allowed directly to the application home page with out prompting for Authentication.

JDeveloper Version : 11.1.1.7

Thanks,

Debarghya

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 19 2016
Added on Aug 22 2016
11 comments
3,667 views