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

  • SEARCH
  • Home
  • 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 6010547
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T02:07:54+00:00 2026-05-23T02:07:54+00:00

I have a web app that uses custom forms authentication tickets. I am logging

  • 0

I have a web app that uses custom forms authentication tickets. I am logging in using a custom authentication mechanism, and creating a custom authentication ticket.

From the web app I then make regular Ajax calls to an MVC2 controller to ask if the user is authenticated. The controller method looks like this:

public ActionResult GetAuthenticationStatus()
        {
            string responseDoc;

            if (HttpContext.User != null
                && HttpContext.User.Identity.IsAuthenticated)
            {
                responseDoc = "{\"status\":\"authenticated\"}";
            }
            else{
                responseDoc = "{\"status\":\"unauthenticated\"}";
            }

            return new ContentResult { Content = responseDoc, ContentType = "application/json" };

        }

The IIS logs show that the authentication ticket cookie is arriving successfully at IIS, but my controller method is returning {\”status\”:\”unauthenticated\”} so obviously it seems my controller conditions for checking user authentication are incorrect.

Peculiarly, it all works fine in Chrome. However, it does not work in mobile Safari. Can anyone see anything wrong with my controller method?

Thanks.

  • 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-23T02:07:55+00:00Added an answer on May 23, 2026 at 2:07 am

    I believe I have the answer. You need to specifically set web.config to force the use of cookies. My authentication setting in web.config now looks like this:

    <authentication mode="Forms">
          <forms loginUrl="~/Account/LogOn" timeout="2880" 
                 cookieless="UseCookies" 
                 />
        </authentication>
    

    It is the cookieless=”UseCookies” entry that solved the problem. The default value for this is UseDeviceProfile. It must have been the case that an iPad does not have a consistent UseDeviceProfile regime.

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

Sidebar

Related Questions

I have an asp.net web app that uses forms-based authentication, a SqlMembershipProvider (using an
I have a Web Forms app that uses forms authentication. I have a Crystal
I have a asp.net web forms app that uses System.Web.Caching.Cache to cache xml data
Using Visual Studio 2008 and VB.Net: I have a working web app that uses
I have a web project that uses a custom configuration class to store app
I have a web app that uses the Active Directory Membership Provider and when
So I have an app that uses the Zend amazon web services client. I
I have an intranet web app that uses CSS httpFolder to map a webdav
I have a web app that uses a flash uploader (swfuploader) and recently a
I have a java web start app that uses Swing and needs to allow

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.