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 7190885
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T19:36:42+00:00 2026-05-28T19:36:42+00:00

I have simple jQuery Mobile site created using asp.net mvc 2 and uses basic

  • 0

I have simple jQuery Mobile site created using asp.net mvc 2 and uses basic forms authentication to grant access to the site.

The application is a simple work diary that allows a regional manager to view details about the current issues assigned to a regional team.

When a mobile connection is available the app works very well but due to lack of signal we need to investigate the possibility of making the core of the application available offline. I have been researching the possibility of taking the app offline using html 5 but cannot find any information on authenticating users.

The app is very basic and essentially has two different list screens that drill into the job details.

1. Login    
    1.1 Job List    
        2. Job Details

    1.2 Team Diary    
        2. Job Details

I believe that it would be easy enough to create an offline version of the data that would allow browsing of the diary when a connection is not available but I cannot find any information about a site that requires authentication before it gets to the pages that are allowed to be taken offline.

The content is not sensitive data but obviously the client does not want anyone to be able to browse the work diary on what is a public facing website.

What is the preferred way of authenticating users in a site that could potentially be used offline?

  • 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-05-28T19:36:43+00:00Added an answer on May 28, 2026 at 7:36 pm

    I’m retooling an MVC3 site for offline use and I am running into some of the same issues.

    One thing you need to watch out for is that the browser attempts to download all the files listed in the cache.manifest immediately. This causes a problem if the user is not logged in yet and you have a classic redirection to a login page if the user is not authenticated. You will need to open up a “static” view of these pages to public access and let your JavaScript determine if the user is logged in or not before attempting to retrieve/send updates. This will allow the static non-content pages to be downloaded by the browser and allow your JavaScript to manage the content as necessary.

    My app uses a method borrowed from Jim Lehmer to detect online connectivity.

    Once we find we are connected I created a little Action in my Account controller that nicely returns whether the user is authenticated or not:

        public JsonResult IsAuthenticated()
        {
            return Json(new { Request.IsAuthenticated }, JsonRequestBehavior.AllowGet);
        }
    

    Hope that helps!

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

Sidebar

Related Questions

I have a very simple .NET MVC3 project set up using jquery mobile for
I have an button in my Jquery mobile page, which is using asp.net webform.
I am currently developing a mobile site using jQuery mobile. I have one simple
We have a simple mobile web application using jQuery. The application is working good
I have this simple fiddle , which uses jQuery mobile, but it's not working.
I have a simple Android App using simple js, jquery mobile and phonegap that
I have just started looking into jquerymobile, done simple samples using jquery.mobile-1.0a1 . I
We are developing JQuery Mobile app using RC1 + ASP.NET MVC3. My question is:
I've created a simple jQuery Mobile page - have put the relevant sample here:
I have created a simple JQuery script with hovering effect on some links. The

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.