Alpha Software Mobile Development Tools:   Alpha Anywhere    |   Alpha TransForm subscribe to our YouTube Channel  Follow Us on LinkedIn  Follow Us on Twitter  Follow Us on Facebook

Announcement

Collapse

The Alpha Software Forum Participation Guidelines

The Alpha Software Forum is a free forum created for Alpha Software Developer Community to ask for help, exchange ideas, and share solutions. Alpha Software strives to create an environment where all members of the community can feel safe to participate. In order to ensure the Alpha Software Forum is a place where all feel welcome, forum participants are expected to behave as follows:
  • Be professional in your conduct
  • Be kind to others
  • Be constructive when giving feedback
  • Be open to new ideas and suggestions
  • Stay on topic


Be sure all comments and threads you post are respectful. Posts that contain any of the following content will be considered a violation of your agreement as a member of the Alpha Software Forum Community and will be moderated:
  • Spam.
  • Vulgar language.
  • Quotes from private conversations without permission, including pricing and other sales related discussions.
  • Personal attacks, insults, or subtle put-downs.
  • Harassment, bullying, threatening, mocking, shaming, or deriding anyone.
  • Sexist, racist, homophobic, transphobic, ableist, or otherwise discriminatory jokes and language.
  • Sexually explicit or violent material, links, or language.
  • Pirated, hacked, or copyright-infringing material.
  • Encouraging of others to engage in the above behaviors.


If a thread or post is found to contain any of the content outlined above, a moderator may choose to take one of the following actions:
  • Remove the Post or Thread - the content is removed from the forum.
  • Place the User in Moderation - all posts and new threads must be approved by a moderator before they are posted.
  • Temporarily Ban the User - user is banned from forum for a period of time.
  • Permanently Ban the User - user is permanently banned from the forum.


Moderators may also rename posts and threads if they are too generic or do not property reflect the content.

Moderators may move threads if they have been posted in the incorrect forum.

Threads/Posts questioning specific moderator decisions or actions (such as "why was a user banned?") are not allowed and will be removed.

The owners of Alpha Software Corporation (Forum Owner) reserve the right to remove, edit, move, or close any thread for any reason; or ban any forum member without notice, reason, or explanation.

Community members are encouraged to click the "Report Post" icon in the lower left of a given post if they feel the post is in violation of the rules. This will alert the Moderators to take a look.

Alpha Software Corporation may amend the guidelines from time to time and may also vary the procedures it sets out where appropriate in a particular case. Your agreement to comply with the guidelines will be deemed agreement to any changes to it.



Bonus TIPS for Successful Posting

Try a Search First
It is highly recommended that a Search be done on your topic before posting, as many questions have been answered in prior posts. As with any search engine, the shorter the search term, the more "hits" will be returned, but the more specific the search term is, the greater the relevance of those "hits". Searching for "table" might well return every message on the board while "tablesum" would greatly restrict the number of messages returned.

When you do post
First, make sure you are posting your question in the correct forum. For example, if you post an issue regarding Desktop applications on the Mobile & Browser Applications board , not only will your question not be seen by the appropriate audience, it may also be removed or relocated.

The more detail you provide about your problem or question, the more likely someone is to understand your request and be able to help. A sample database with a minimum of records (and its support files, zipped together) will make it much easier to diagnose issues with your application. Screen shots of error messages are especially helpful.

When explaining how to reproduce your problem, please be as detailed as possible. Describe every step, click-by-click and keypress-by-keypress. Otherwise when others try to duplicate your problem, they may do something slightly different and end up with different results.

A note about attachments
You may only attach one file to each message. Attachment file size is limited to 2MB. If you need to include several files, you may do so by zipping them into a single archive.

If you forgot to attach your files to your post, please do NOT create a new thread. Instead, reply to your original message and attach the file there.

When attaching screen shots, it is best to attach an image file (.BMP, .JPG, .GIF, .PNG, etc.) or a zip file of several images, as opposed to a Word document containing the screen shots. Because Word documents are prone to viruses, many message board users will not open your Word file, therefore limiting their ability to help you.

Similarly, if you are uploading a zipped archive, you should simply create a .ZIP file and not a self-extracting .EXE as many users will not run your EXE file.
See more
See less

Proper Logout of UX

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Proper Logout of UX

    What is proper code to use to logout user of UX? What I have right now is

    {dialog.object}.logout();

    I doesnt seem like it is clearing everything when the user logs out. I have some arguments that has values set so I want to make sure they clear and everything else when a user logs out.

    #2
    Re: Proper Logout of UX

    Call an a5w page with this in it.
    <%a5
    a5ws_logoutuser(session,request,response)
    session.reset()
    session.Abandon()
    response.redirect("SignIn.a5w") -- what ever your sign-in page is.
    %>
    Insanity: doing the same thing over and over again and expecting different results.
    Albert Einstein, (attributed)
    US (German-born) physicist (1879 - 1955)

    Comment


      #3
      Re: Proper Logout of UX

      I believe reset() and abandon() have been deprecated.

      I use this...

      Code:
      a5ws_logoutuser()
      
      response.redirect("SignIn.a5w") 'what ever your sign-in page is.
      Mike Brown - Contact Me
      Programmatic Technologies, LLC
      Programmatic-Technologies.com
      Independent Developer & Consultant​​

      Comment


        #4
        Re: Proper Logout of UX

        Dunno - just know it works fine for me.
        Insanity: doing the same thing over and over again and expecting different results.
        Albert Einstein, (attributed)
        US (German-born) physicist (1879 - 1955)

        Comment


          #5
          Re: Proper Logout of UX

          You might want to experiment with a5ws_logoutuser() to see if it really wipes out the session variables or not.

          For me I have an a5w page perform a DELETE session.varXXX on a couple of critical session variables that must not exist when the user tries to login and then for my other session variables I just initialize them to some default values.

          Comment


            #6
            Re: Proper Logout of UX

            I am not doing an a5w page logout but from a UX component, specifically from a control bar. Are you saying have an a5w page with this code and within the UX component control bar logout call the a5w page?

            Comment


              #7
              Re: Proper Logout of UX

              Be a bit careful here... because all the answers, so far, are for web apps... not mobile apps. The type of application has not been confirmed. If you're working with a mobile app - an installed, PhoneGap Build App - not a web application running on a mobile device - then your app will have nothing to do with a5w pages.

              When posting you should probably declare the type of app you're building and the Alpha version/build you're working with.

              Comment


                #8
                Re: Proper Logout of UX

                Ok, from a UX prespective, whats the best way to logout a user to make sure everything is clear? Again, my app appears to be retaining some of the settings I think because sometimes when I log out and log back in it just gives a white screen.

                Comment


                  #9
                  Re: Proper Logout of UX

                  Yes, my solution was for a web browser app where you have a5w pages, but if you are in mobile app, I would believe the idea is still the same -- if Alpha does not clear things out for you then put in code yourself to clear things out. It depends where your "stuff" is that you want cleared out as to the actual code, but in the same way you set the values, you should be able to either blank out the values or delete the variables when the "logout" link/button is clicked.

                  Comment


                    #10
                    Re: Proper Logout of UX

                    Originally posted by swest View Post
                    Ok, from a UX prespective, whats the best way to logout a user to make sure everything is clear? Again, my app appears to be retaining some of the settings I think because sometimes when I log out and log back in it just gives a white screen.
                    Still don't know what type of app or what version/build of Alpha

                    Comment


                      #11
                      Re: Proper Logout of UX

                      Im on version 12.4.4.5 Build 4491

                      Comment


                        #12
                        Re: Proper Logout of UX

                        Steven, when you say "app" are you building a web application, or is this a phone-gap build app installed on a device?

                        I find it strange that logging out and then logging IN again would give you anything different than logging into the application for the first time.
                        To me, that's a good starting point to consider when debugging what is going on here.
                        NWCOPRO: Nuisance Wildlife Control Software My Application: http://www.nwcopro.com "Without forgetting, we would have no memory at all...now what was I saying?"

                        Comment


                          #13
                          Re: Proper Logout of UX

                          It’s phonegap for IOS app. It only does it sometimes which makes me think that it isn’t clear out sometimes so if there is some code to put in to make sure it’s cleared

                          Comment


                            #14
                            Re: Proper Logout of UX

                            are you using local storage to restore values - either in the properties of the UX or in any list controls? Also, when you say it "gives a white screen" does that mean you log in then get a white screen instead of panelcard_1? In other words, after a successful login - do you go to the expected place and just no tsee anything on the page OR do you not actually go the expected place?
                            I think my next question is are you using persistent login?
                            NWCOPRO: Nuisance Wildlife Control Software My Application: http://www.nwcopro.com "Without forgetting, we would have no memory at all...now what was I saying?"

                            Comment


                              #15
                              Re: Proper Logout of UX

                              No not using local storage or persistent login and if am then I dont know about it. If you will tell me how to check to make sure I will. Just sometimes when login it is just a plain white screen, it should be calling a panel card after login but it appears to me it doesnt and has just a white screen.

                              Comment

                              Working...
                              X