Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8472543
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T17:06:19+00:00 2026-06-10T17:06:19+00:00

When running a mobile site in iOS full screen mode, using the apple-mobile-web-app-capable meta

  • 0

When running a mobile site in iOS full screen mode, using the “apple-mobile-web-app-capable” meta tag, I am using a combination of AJAX and synchronous page requests, including redirects, with success while the user is logged in.

However, when the user logs out and the session is destroyed, the iOS device leaves full screen mode and opens the login page in a Mobile Safari window.

Here is a common sequence of events:

  1. User clicks button on Home Screen to launch mobile site in iOS full
    screen mode
  2. Server redirects user to login page for authentication (still in full screen)
  3. User logs in, and is redirected back to mobile home (still in full screen)
  4. User performs various actions, via GET and POST, some using AJAX and some not (still in full screen)
  5. User hits logout button, which destroys session and redirects back to login page
  6. Mobile Safari window opens to render login page this second time

I have tried 301, 302 and 303 redirects on logout success and nothing seems to change this behavior. It seems related to the user’s session ending when running in full screen mode. I don’t think this matters, but the security mechanism is implemented via Spring Security running on Tomcat.

Is there any way to prevent this behavior? I would prefer not to use a location.href client side redirect on logout.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T17:06:21+00:00Added an answer on June 10, 2026 at 5:06 pm

    You can cancel a links default behaviour by using jQuery’s event delegation to assign a single, top-level event handler to all links on the page. When a click event is detected, we cancel the default behavior (which is to open in mobile Safari) and then manually change the window’s location. This approach allows the page to be changed without breaking the iPhone standalone application experience.

    http://www.bennadel.com/blog/2302-Preventing-Links-In-Standalone-iPhone-Applications-From-Opening-In-Mobile-Safari.htm

    I was under the impression from running into this previously that any non-ajax/ javascript navigation would cause the app to jump into safari to serve the page

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a little HTML5 web app for mobile devices (running inside PhoneGap/Cordova). I
I have a mobile site running with jQuery Mobile. I want to have standard
I use simpledialog in jquery mobile app. It works fine when running in normal
I am using jQuery 1.6.4 with jQuery Mobile 1.0.1. I am running into an
I am running Flex mobile project and I would like my mobile app to
i'm working on a jquery mobile web site. and am trying to use the
I've developed a site with jQuery mobile that's running within a Kentico CMS. I
I am using the jQuery mobile framework to build a mobile site and believe
My app is running Jquery/Jquery Mobile/RequireJS on the front end and Coldfusion8/MySQL 5.0.88/Apache on
I'm still trying to figure out a way to get a mobile site running.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.