Skip to Content

User closing browser without clicking logoff link in mastheader...

Hi All,

When EP users clicks on logoff link in the mastheader, we are redirecting the url and in logoff() method I am deleting session/cookies etc.. till this point its fine... working perfectly.

If users clicks on IE close (browser X on upper left corner), its not deleting any cookies... other user opening the portal on same terminal will automatically see previous users portal. how to remove cookies/session when user closes browser without clicking logoff link on mastheader.

I check SDN for this... but everyone talking about logoff url... logoff url working fine for me... when user closes browser with out clicking logoff... that portal session must end.

I referred many sdn posts like

Logging off Portal - Cookies/Caching

How to make sure the cookie is destroyed?

but no solution found...

Once again I will explain my issue... IF USER CLICKS ON LOGOFF URL, ALL PORTAL SESSIONS/COOKIES ARE CLICKED(no issues with logoff link)... BUT IF USER CLICKS ON BROWSER CLOSE ("X" ON UPPER LEFT CORNER) NO PORTAL SESSION/COOKEIS ARE KILLED.

Thanks,

PradeeP

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Oct 26, 2010 at 08:28 PM

    Hi Pradeep,

    The portal logon cookie is a browser session based cookie. So when the user closes the browser (this kills the session) the cookie is deleted. I am surprised that you say another user on the same terminal can then just log on with out any logon screen. What authentication mechanism are you using (basic user id/password, kerberos, etc...)??

    It is possible to catch the browser close action in JavaScript (in fact this is how DSM termination works in the portal), but if the user is really closing the browser fully then the logon ticket is deleted anyway and the next user has to use a new browser session and therefore create their own logon ticket (by logging on).

    BRgds,

    Simon

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.