cancel
Showing results for 
Search instead for 
Did you mean: 

Trying to log out a user and return to the page

Former Member
0 Kudos

In MII 12.1, I have an .irpt page that I would like to function like so:

- Login screen displayed

- User logs in with user ID and password, then sees submission form

- User submits form, and then is logged out

- Page returns to login screen, loop continues

This is the code I have at the end of the submit function:

 window.location.href = "/XMII/Illuminator?service=Logout";
// window.location.href="https://answers.sap.com/XMII/CM/mdl/request.irpt";

I have a few issues. The first is that, even though the user is indeed logged out, he or she can still use the "back" button on the browser to return to the data he or she had entered--and then we start seeing JavaScript errors (because the user's no longer logged in).

The second issue is that when the second user logs in, he or she is not taken back to the request.irpt page, but rather our overall MII page. I would prefer that the user go directly to the request.irpt page.

If I un-comment the second line shown above, the user returns to the request page--but the login doesn't happen at all.

Does anyone know if what I'm trying to do is possible?

Thanks in advance!

Accepted Solutions (0)

Answers (1)

Answers (1)

agentry_src
Active Contributor
0 Kudos

While not a particularly secure method, you can include the second users IllumLoginName and IllumLoginPassword in the URL.

Regards,

Mike

Former Member
0 Kudos

HI

For the second Issue use



window.location.href = "/XMII/Illuminator?service=Logout&target=/XMII/CM/mdl/request.irpt"

For the fiset Issue you can try couple of thing.

1. on the page load event check for session exist.

2. Disable back buttion in browser through javascript.

Thanks

Anshul

Edited by: Michael Appleby on Aug 4, 2011 7:03 PM Putting extra lines between code indicators