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

Mobile Disconnected Application and Session Time Out Problem

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

    Mobile Disconnected Application and Session Time Out Problem

    I have a scheduled check in / out mobile app designed to work in disconnected environment. The app is HTML using UIWebView on the iPhone.
    Everything works fine as expected except when the session times out and there is no session time out warning.
    Scenario:
    1. User logs in and retrieves latest schedule as long as the schedule list is clean (if dirty, user must sync before getting new data from the server)
    2. User sessions times out, but no warning is displayed. Session length is currently set to 90 minutes. (some drive to sites much longer than 90 minutes)
    3. User presses check in button which executes java script to get location and then update the check in time stamp field. I then update the list with the code below.
    var lObj = {dialog.object}.getControl('LIST_SCHEDULE');lObj.updateTableRow(primaryKey,data,ops);
    4. The app then attempts to execute {dialog.object}.synchronizeLists() which fails because session timed out and user is brought back to login page.
    5. When user logs back, the list is dirty so user is notified that the list is dirty and must synchronize data.

    Although the data is good, the user experience is not good. I need to have the session time out warning or some method of detecting that the session has timed out without going back to the server since we want to use the disconnected features. Can I set the session time out to 10 hours? Are there consequences for extended session time out settings?

    If anyone has a possible solution or workaround, it would be much appreciated.

    #2
    Re: Mobile Disconnected Application and Session Time Out Problem

    Does that mean you're using PhoneGap Build?

    There's some information about the session timeout warning property of the UX in the release notes... http://downloads.alphasoftware.com/A...easenotes.html

    Comment


      #3
      Re: Mobile Disconnected Application and Session Time Out Problem

      I did not use PhoneGap. We created a simple XCode app that opens the URL in UIWebView. We deploy from our own internal server.
      The release notes describe a session time out bug when checking the UX pre-render property. That would not apply to my case.
      I wrote a simple xBasic call to just return a session variable value hoping to trap the session being timed out, but the AJAX call back redirects automatically to login when session is timed out. The AJAX failed option did not fire.
      I see a few choices.
      1. Figure out why session time out message does not appear. It appears in PC browser OR when I set iPhone setting Auto-Lock to "Never."
      2. Figure out java script to check client session timer.
      3. Set the session time out warning to 10 or 12 hours so app can stay open during the work day. I don't know if this will cause other problems having such a long session time out.
      4. Write my own session time out to be less than the server time out.

      Comment


        #4
        Re: Mobile Disconnected Application and Session Time Out Problem

        To workaround this issue, I am testing a 60 minute timer event that fires an AJAX callback that does nothing. The callback should reset the session timer so the app stays alive during the day without increasing the session time out beyond 90 minutes. This should make the application more friendly in respect to redirecting to login page when session is timed out, but no warning is displayed.

        Comment


          #5
          Re: Mobile Disconnected Application and Session Time Out Problem

          The AJAX timer callback stops when the phone locks so the workaround will not solve the time out problem.

          Comment


            #6
            Re: Mobile Disconnected Application and Session Time Out Problem

            Originally posted by frankiez View Post
            The AJAX timer callback stops when the phone locks so the workaround will not solve the time out problem.
            Yeah this is exactly the issue we have, Is there ANY way around this?

            Comment


              #7
              Re: Mobile Disconnected Application and Session Time Out Problem

              FYI - The solution to my problem was removing all session variables from the application and changing the login expiration policy (found under web security configuration / login options) to "expires when the user closes the browser". This improved the user experience and the application is now working as intended. The app is supporting 50 users with more coming on each day on a single license application server.

              Comment


                #8
                Re: Mobile Disconnected Application and Session Time Out Problem

                Well done Frank.. Pete
                Insanity: doing the same thing over and over again and expecting different results.
                Albert Einstein, (attributed)
                US (German-born) physicist (1879 - 1955)

                Comment


                  #9
                  Re: Mobile Disconnected Application and Session Time Out Problem

                  I wanted to eliminate my session variable for much the same reason since I filter my components by my session variable and create all records referencing it - this variable is extremely important - any advice on how to eliminate it? what are my other choices? Are other variables just as "stable" or best suited for the way I use teh session var?
                  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


                    #10
                    Re: Mobile Disconnected Application and Session Time Out Problem

                    I chose to use a cookie for my EmployeeID value as my main argument for the logged in user. You need to balance security implications with the use of cookies for your application. The cookie is used for my argument binding in the list control data source. I attached some java script that I obtained from a video on how to save data to a cookie and use a remember checkbox the user id of the login component. Hope this is helpful.

                    Another method is to store the EmployeeID in a control on your login component and reference that from any other component using the following java script.
                    var pObj = {dialog.object}.getTopParentObject();
                    var vwhatEmployeeID=pObj.getValue('whatEmployeeID');"
                    This will obtain the value no matter how many levels deep your components are nested.

                    There may be better methods of accomplishing the goal of removing session variables, but this has worked for my application.
                    jsAfterLoginUXClientSiteEvent.txt

                    Comment

                    Working...
                    X