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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T09:08:17+00:00 2026-05-29T09:08:17+00:00

I’m working on an application for iPad in Xcode 4.2 and I authenticate my

  • 0

I’m working on an application for iPad in Xcode 4.2 and I authenticate my users with a MySQL database. I’m wondering what’s the best practice for keeping track of a user that has logged in.

Can I just make a variable in my AppDelegate, for example:

@interface beAppDelegate : UIResponder <UIApplicationDelegate>{
    BOOL *loggedin;
}
- (void)setLoggedin:(BOOL *)newLoggedin;

and set that value to true when the correct username and password are entered?

Or should I use a plist to store the fact that a user has logged in?

Can someone tell me the safest way?

  • 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-29T09:08:18+00:00Added an answer on May 29, 2026 at 9:08 am

    Best practice is to rely on the operating system having already done that for you, and to avoid presenting your own UI for login.

    iOS already has a built-in authentication mechanism, used for controlling the screen lock and protecting files and keychain storage. The user can set (or their IT department can mandate) a passcode of any complexity: iOS will manage presenting that UI, granting access on successful entry of the passcode and keeping attackers out by limiting the rate and number of guesses at the passcode. This process uses PBKDF2 to generate decryption keys used to access confidential storage, so without the passcode this storage is complete unavailable throughout iOS and to offline attacks. Unless your system replicates all of this, you’ve gone to less effort to provide a worse implementation. If you do replicate all of that, then you’ve gone to a lot of effort to provide a potentially buggy version of something that was available to you already.

    But it’s worse than that: we also need to consider the user experience of presenting multiple login demands. Your app isn’t being used in vacuo: your customers have all sorts of other apps on their devices including email and messaging applications. If they are concerned about the confidentiality of any of that information, they can configure the iOS password to protect all of it – and your app’s password prompt becomes superfluous and annoying. Conversely, if they aren’t concerned about confidentiality then they won’t set a passcode, and your app’s password prompt becomes unexpected, superfluous and annoying.

    • 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'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I need to clean up various Word 'smart' characters in user input, including but
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I have a reasonable size flat file database of text documents mostly saved in
I'm having trouble keeping the paragraph square between the quote marks. In firefox the
I'm working with an upstream system that sometimes sends me text destined for HTML/XML
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have just tried to save a simple *.rtf file with some websites and
I want to count how many characters a certain string has in PHP, but

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.