cancel
Showing results for 
Search instead for 
Did you mean: 

Login/Logoff in wda page

Former Member
0 Kudos

Hi Gurus,

I am creating a wda application .. The login is as usual the netweaver login.

I want to have a provision lke a logoff button..

Can someone advice on this..

Also I went through some threads in the forum and found this..

Thread:

Ok i solved it by redirecting to a bsp page and inside this i kill the authentication cookies on the client side, after delete i redirect to the original webdynpro application which brings me again to the login page......

function DelSso2Cookie(sName,sPath){

var sso2Domain = location.hostname;

if (location.hostname.indexOf(".")!=0) sso2Domain =location.hostname.substr(location.hostname.indexOf(".")+1);

p="";

if(sPath)p=" path="sPath";";

document.cookie = sName"=0; expires=Fri, 31 Dec 1999 23:59:59GMT;"p"domain="sso2Domain+";";

};

try{document.execCommand( 'ClearAuthenticationCache' );

} catch (e) {}

DelSso2Cookie("MYSAPSSO2","/");

Thanking You.

Best Regards,

Navin Fernandes.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

hi

refer this blog :

How to close parent window in Webdynpro applications

http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3414700)ID0203241250DB21037157911282470218End...

regards,

amit

Former Member
0 Kudos

Refer SAP Online help for using Exit plug which will close the window :

http://help.sap.com/saphelp_nw70ehp1/helpdata/en/48/ca3351508f04e7e10000000a42189c/content.htm

Former Member
0 Kudos

Hi saurav,

Thanks for the information..

But i have a doubt.. this logout procedure is to close the webpage but the netweaver sign still remains..

I want the sign in also disconnect when the webpage is closed..

Could you help me with this..

Best Regards,

Navin Fernandes.

Former Member
0 Kudos

Hi All,

Resolved, Created a BSP page to kill the cookie.

Best Regards,

Navin Fernandes.

Former Member
0 Kudos

Hi,

could you "show" your BSP page please.

Many thanks in advance!

Former Member
0 Kudos

Hi Navin,

I know this thread is old, but can you please show us how you create the BSP to delete the cookies? I'm having the same problem. The exit plug executes but JavaScript is not working once is redirected to the webpage created through SCIF Logoff Page

Thanks,

Raú

Former Member
0 Kudos

hi ,

When u click on Log Off button,should ur application window get closed?

If so,

(1)Maintain Outbound plug in ur view,OP_VIEW.

(2)Similarly maintain Outbound plug ,OP_WINDOW of type EXIT and Inbound plug,IP_WINDOW in

ur window.

(3)In the event handler of inbound plug,IP_WINDOW,fire the EXIT plug OP_WINDOW.

(4)Now fire the outbound plug OP_VIEW in the onAction of ur Log Off button.

(5)Maintain an importing parameter CLOSE_WINDOW of type boolean in ur EXIT plug(OP_WINDOW)

and while firing the exit plug in the handler event of inbound plug,pass the value for CLOSE_WINDOW

as 'X'.

regards,

amit

Former Member
0 Kudos

Hi Amit,

Thanks for the information..

But i have a doubt.. this logout procedure is to close the webpage but the netweaver sign still remains..

I want the sign in also disconnect when the webpage is closed..

Could you help me with this..

Best Regards,

Navin Fernandes.