cancel
Showing results for 
Search instead for 
Did you mean: 

How to Log Off on close of a window?

former_member189320
Participant
0 Kudos

Hello experts,

How do we call the log off if the user closes the window without clicking on log off link?

We have customized the portal header. Can some one help me on the code snipet which needs to be called on the window close event.

Thanks for the help.

Regards,

Nirmal Sivakumar G

Edited by: Nirmal Sivakumar G on Aug 24, 2009 7:30 PM

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello,

Can you check the thread from Roy.

The requirement was similar to yours I guess.

Thanks

Avik

Former Member
0 Kudos

Closing the thread.

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

The session should be terminated automatically when you close the window. Or you can use the EPCM.DSM.terminateAll() function to do this ().

Regards,

Pierre

former_member189320
Participant
0 Kudos

Hi Pierre,

Thanks for your reply. The session termination is not happening automatically. I tried calling dsm terminator in the header par file. But its not working. The thread does not have complete information on how to use this function. Have you used it before / do you have any code snipet for the same.

Thanks,

Nirmal

former_member189320
Participant
0 Kudos

Hi Pierre,

Thanks for your reply. The session termination is not happening automatically. I tried calling dsm terminator in the header par file. But its not working. The thread does not have complete information on how to use this function. Have you used it before / do you have any code snipet for the same.

Thanks,

Nirmal

Former Member
0 Kudos

Hi,

try to put this form into the page and on window close event submit it (by JavaScript):


<form name="logofform" action="/irj/portal" target="_top" method="POST">
<input type="hidden" name="logout_submit" value="true">
</form>

Romano