1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Sitefinity 5.1 login issue with Mobile Safari

Sitefinity 5.1 login issue with Mobile Safari

4 posts, 0 answered
  1. Bryan
    Bryan avatar
    2 posts
    Registered:
    20 Sep 2012
    20 Sep 2012
    Link to this post
    Development has recently completed on a site built on Sitefinity 5.1 and has launched, but users with iPads trying to login via Mobile Safari cannot. Testing this myself, trying to login shows red text with "error:" and then the page refreshes.

    Logging in via Chrome or Dolphin does work, but Mobile Safari fails. If logging in via the Sitefinity Admin page, then this does work in Mobile Safari, but is not the desired flow.

    Is there any known bug or configuration that the login widget would need to fix this problem?
  2. Keith
    Keith avatar
    3 posts
    Registered:
    12 Sep 2012
    19 Feb 2013 in reply to Bryan
    Link to this post

    Were you able to find an answer to this?  We are also getting these errors...sometimes clearing cache and/or updating iOS fixed the issue, but I would like a clearer answer.  Thanks!

  3. Bryan
    Bryan avatar
    2 posts
    Registered:
    20 Sep 2012
    21 Feb 2013
    Link to this post

    The problem seemed to arise if the user had logged-in on another device and did not logout before attempting to login on their iPad. The solution that we found was to completely close Safari and then delete cookies. After this, the user was able to login on the iPad without any error.

    We initially tried to simply logout on the original machine and then try to login on the iPad, but that resulted in the error. There seems to be a problem with handling cookies and server-side authentication, but I can't really say for sure.

    Being the first Sitefinity project, I can definitely say that it is a challenging platform and has a high learning curve.

  4. Boyan Barnev
    Boyan Barnev avatar
    1429 posts
    Registered:
    16 Aug 2017
    22 Feb 2013
    Link to this post
    Hello Bryan,

    Can you please confirm if you are using iOS5 on the devices you've experienced the issues with?

    Further investigation on the issue has confirmed that there are problems in the Safari browser version used in iOS5, that conflict with the default ASP.NET <a href="#" onclick="return false"> approach for rendering clickable hyperlink. More information on the topic can be found on this discussion at StackOverflow.

    We have verified that the behavior is working correctly in newer and older versions of the iOS software(4 and 6), so we would strongly recommend upgrading the iOS version of the devices to the latest officially supported one to benefit from their bugfix for the issue.
    As an alternative you can try adapting the behavior of the hyperlink, using jQuery and setting the onclick attribute, as specified int he above mentioned thread. The fastest way to achieve this would be by placing a JavaScript widget on the page or template where your public login control is placed, and write:

    $('.sfSubmitBtn').attr('onclick', 'event.preventDefault(); return false;')

    Please specify the widget to load this script before the body closing tag.

    If any issues persist, please do not hesitate to let us know.

    All the best,
    Boyan Barnev
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
4 posts, 0 answered