cancel
Showing results for 
Search instead for 
Did you mean: 

how to provide logout functionality

Former Member
0 Kudos

Hi all,

my requirement is i have created a button when i click on that logoutbutton the application has to be logout . can u tell me how to provide this logout functionality.

thanks & regards

naveen

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi,naveen:

Logoff is very simple in WD4A, as WD is just based on WEB.

Okay, the steps you can try:

(1).Create one outbound plug in the view.

(2).In your button action handler, using the example code:

wd_this->Fire_log_off_Plg( ).

(3).create one Inbound Plug in your main window.

(4).Create one Outbound plug in window, pls be noted,the plug type is "EXIT", and plug the "Interface" indicator

(5).in your inbound plug's handler of your main window,using the example code:

 wd_this->Fire_exit_window_Plg( ).

(6).In the window, navigate your outbound plug of View to the inbound plug of window.

Best wishes.

Former Member
0 Kudos

Thanks can,

It is working but can u tell me the functionality what at bcak end is doing

when i create one outbound plug in in view log_off

and then again when i am creating an outbound plug in window exit_window

and one inbound plug

and creating a navigation link between view outbound plug and window inbound plug

can u explain me the back end functionality

thanks & regards

naveen

Answers (2)

Answers (2)

Former Member
0 Kudos

backend functionality of logout

Former Member
0 Kudos

hi,naveen.

Sorry for reply late..

About the backend functionality, i don't know how to describe or how to explain..

However, i can say that:

At runtime, when the action navigate to the Outbound plug of View, which linked to the inbound plug of Window, then, you again linked to the EXIT outbound of window.

This Exit outbound plug will exit the window...

In fact, generally, when we log out, we also should provide user that he can REALLY close the IE Browser..About how to realize it, i think you have already been very familiar with.That way, we can use the JS, as the way we treated in traditional WEB technology,such as HTML, ASP,JSP,ASPX,etc..

Er...About the backend, i think SAP has already considered and published related theories, such as Session, Cookies..I am sorry for that, as a developer, many time i just use the existing technology/Skills, instead of not looking into the BACKEND area like you..

Thanks you for discuss..

Best wishes.

Former Member
0 Kudos

hi Naveen,

u can check these useful threads in which functionality is already discussed:

regards,

Amit

Former Member
0 Kudos

thnaks amit