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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T16:47:31+00:00 2026-06-07T16:47:31+00:00

I’m having trouble with Chrome on the iPad/iPhone with what I thought was a

  • 0

I’m having trouble with Chrome on the iPad/iPhone with what I thought was a simple enough task and works on Chrome Desktop (Mac & PC) and Safari on iPad/iPhone.

I have the following jquery on my page:

$(“#login-login-button”).click(function () {
var username = $(“#Username”).val();
var password = $(“#Password”).val();

    $("#login-loading-icon").show();

    $.post("/login", { username: username, password: password }, function (data, response) {
        if (response == "success") {
            if (data.IsValid) {
                window.location.href = "/profile";
            }
            else {
                $("#login-error-message").html(data.ErrorMessage);
                $("#login-loading-icon").hide();
            }
        }
        else {
            alert("An error occurred, please try again.");
        }
    });
});

And the Controller Action is code looks like this:

[HttpPost]
public JsonResult Index(string username, string password)
{
        AjaxResponseModel ajaxResponseModel = new AjaxResponseModel();

        User user = UserDAL.Select(username, Hash.MD5(password));

        if (user != null)
        {
            if (!user.IsVerified.Value)
            {
                ajaxResponseModel.AddErrorMessage("Account not verified.");
            }
            else if (!user.IsActive.Value)
            {
                ajaxResponseModel.AddErrorMessage("Your account is not active.");
            }
            else
            {
                FormsAuthentication.SetAuthCookie(username, false);
            }
        }
        else
        {
            ajaxResponseModel.AddErrorMessage("Login details incorrect.");
        }

        return Json(ajaxResponseModel);
    }

I’ve tried setting the Auth Cookie via a non-ajax request but it’s not working either.

And I’ve discovered that on the iPad/iPhone if I use the “Request Desktop Site” in the Chrome menu the problem disappears however there is no concept of mobile/desktop on my site at this point i.e. what Chrome gets the first time should be the Desktop site…

  • 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-07T16:47:32+00:00Added an answer on June 7, 2026 at 4:47 pm

    Was already ansewerd here: Asp.Net Forms Authentication when using iPhone UIWebView

    I used the default config which is more reasonable given current browsers distribution.

    <browsers>
      <browser refID="Default"> 
        <capabilities> 
          <capability name="cookies" value="true" /> 
        </capabilities>
      </browser>
    </browsers>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I'm having trouble keeping the paragraph square between the quote marks. In firefox the
I have just tried to save a simple *.rtf file with some websites and
I am doing a simple coin flipping experiment for class that involves flipping a
We're building an app, our first using Rails 3, and we're having to build
Seemingly simple, but I cannot find anything relevant on the web. What is the
I'm making a simple page using Google Maps API 3. My first. One marker
I have a .ini file as follows: [playlist] numberofentries=2 File1=http://87.230.82.17:80 Title1=(#1 - 365/1400) Example

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.