on 09-23-2005 10:58 AM
Hi all,
i created some webpages on open them via javascript popup. Now i would like to use a button for log off. I think that there is a command url possible to close the "session" together with web template. The template should first log off - that means that session should be closed - and than window should be closed. Anyone hast done something like that before?
Best regards,
M.Erb.
M.,
We merely provide a link on our web pages that says 'Log off' which will issue the command below when clicked. This ends the user's session. We do not close the window as you were asking about; instead, we use a Redirect to take them to another page. I would think you could use some JavaScript code to close the window though if you needed to.
<A href="<SAP_BW_URL CMD="LOG_OFF" REDIRECT_URL="http://www.whatever.com">"><u><FONT face="Arial" size="1" color="black" >Log off</FONT></u></A>
You might want to look at the document on the Web API for some of this. Use the link below (this is for 3.5 but a lot of it applies to lower systems as well) -- page 157 shows the LOG_OFF command.
Jody
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Joseph,
I tried using the LOG_OFF command in the url but it doesn't actually log off the user from BW. After I clicked on the Log Off link, I was redirected to some random website. Then, I executed another web template in the same window and I was not prompted to login and the web template loaded. I expected to be asked to login.
So, what exactly is the LOG_OFF command supposed to do?
Thanks.
Audrey,
I am not sure what the difference would be. In our environment, after a user clicks the 'Log off' link and executes the statement I stated earlier, if they launch another BW web template, it does prompt them to re-enter their id/password. The only exception I know of is if they are executing a long running query, the command I listed does not kill that thread. We also use the BSP logon approach instead of the standard authentication -- this allows them to change the password on the web. It requires extra setup in SICF to redirect to the SAP delivered BSP application.
Jody
Hi Audrey,
just go into the transaction sm04 (user overview)!
Now open a web template. Look in sm04 again. You will notice a session named "plugin HTTP" for your user.
Now close the web template (not logoff). Just close the window. Look again into smo04. The session stays. Now open your web template again and use "LOG_OFF". Go back into sm04 and you will see that session is closed. This function only ends the web session for your user.
Regards,
Adem
Jody,
i got a problem. If i use:
<A href="<SAP_BW_URL CMD="LOG_OFF" REDIRECT_URL="http://www.whatever.com">"><u><FONT face="Arial" size="1" color="black" >Log off</FONT></u></A>
it works but i want to redirect to a webtemplate on the same bw server which contains javascript to show a little animation and to close the window. But if i redirect to this web template i need to log in again. Thats not good Any ideas what could be wrong?
Best regards,
M. Erbil.
User | Count |
---|---|
61 | |
9 | |
7 | |
6 | |
6 | |
6 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.