on 2005 Aug 03 12:07 PM
Hi,
I have problems in closing the sessions of the application I wrote.
The is the method that I have used in closing the session on event ONUNLOAD.
var url="";
<%
if runtime->session_manager->is_running = 0.
%>
<%
CLASS cl_bsp_login_application DEFINITION LOAD.
%>
var url = "<%= CL_BSP_LOGIN_APPLICATION=>GET_SESSIONEXIT_URL( page = page )%>";
<%
IF do_not_delete_sso2_cookie IS NOT INITIAL.
%>
url += "&bsp_do_not_delete_sso2_cookie=X";
<%
ENDIF.
%>
var prop = 'height=100,width=400,top=-2000,left=-2000';
var out = window.open(url,'_blank',prop);
<%
endif.
%>
When I close the window a popup is opened and says that loging off....
But when I open the same url with the link of my home page,
the same page is opened with all the data the same when I closed the window.
Could u please tell me where In my method I am going wrong..
Regards,
venkatesh.
Hi,
If u r in a statefull application then session data is stored in coookie whose name is value of "sap-contextid".
Check the following link :
http://help.sap.com/saphelp_erp2004/helpdata/en/1b/f9b53a364e0e5fe10000000a11405a/frameset.htm
Hope it'll help u.
Thanks & Regards
Ankur
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ,
I guess may be navigation->exit( ) method would be useful to you.
for full information please visit the following link :
http://help.sap.com/saphelp_erp2004/helpdata/en/c2/231779c53011d4990400508b6b8b11/frameset.htm
Moreover just before closing session u can make ur application stateless by runtime->keep_context = 0.
This might be of use to u.
Hope it'll help u.
Thanks & Regards,
Ankur
User | Count |
---|---|
58 | |
10 | |
7 | |
7 | |
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.