Skip to Content
author's profile photo Former Member
Former Member

how to provide logout functionality

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Best Answer
    Posted on Oct 13, 2010 at 09:15 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      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

  • author's profile photo Former Member
    Former Member
    Posted on Oct 13, 2010 at 08:56 AM

    hi Naveen,

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

    log-off-button--wd-ui-element

    log-off-button--wd-ui-element

    wda-logoff-button

    regards,

    Amit

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 14, 2010 at 05:46 AM

    backend functionality of logout

    Add a comment
    10|10000 characters needed characters exceeded

    • 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.

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.