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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T17:14:40+00:00 2026-06-05T17:14:40+00:00

I am looking for the best way to do a One Time Login for

  • 0

I am looking for the best way to do a One Time Login for my iPhone application. Using iOS 5.1.1 SDK but targeting iOS 4.1 for deployment.

Its purpose is to fetch a generated ID: if an ID exists then I don’t need to login anymore, the ID will be returned in XML.

My application is an extension to a current web based service, it involves asynchronous HTTP POSTs on location updates with an ID as an identifier and checking the XML returned for any errors. The ID does not expire. It is a single view application as it just requires a start/stop button.

The username for the web service never changes so I just want to fetch the ID once off, there is no benefit or security risk if a person was to hack things and get the id due to the nature of the service and the application providing no information on the user. The process I would like goes as follows.

  1. Application launched.
  2. Do we have an ID stored? (yes/no)
  3. If yes go into application.
  4. If no present username/password screen to get ID.
  5. On entering username/password, password is encrypted, sent to the server for verification, if yes then an id is returned and stored.

The username/password would be two inputs and a login button.

What would be the best way to go about this? I really don’t know what direction to follow here.

  • 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-05T17:14:42+00:00Added an answer on June 5, 2026 at 5:14 pm

    What I would recommend doing is using iOS’s Keychain to store the ID of the user. You can never be too safe, Example usage can be found here GenericKeychain alternatively theres numerous easy to use wrappers to accomplish this.

    If you really dont care for security, NSUserDefaults works for storage.

    Also, I would suggest utilizing iCloud Document storage to make this ID persistent for all the user(s) devices. You can refer to this thread for more info.

    Hope all that I suggested helped with your question !

    UPDATE: For anyone else who finds this answer useful. As @sandmanza mentioned, be sure to include the Security.framework, if you go the Keychain route.

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

Sidebar

Related Questions

I'm looking for best way of using session within zf application. At first I
I'm looking for a best practise way to handle incoming time series data. One
Looking for the best way to set-up an iPhone project in XCode ... namely:
I'm looking for the best way to detect more than one finger on the
I am looking for the best way to scale a PHP application under Nginx
I'm using Firebird 2.1 and I'm looking for the best way to solve this
UPDATE I'm looking for the best way to detect more than one finger on
I'm looking for the best way to select numbers directly from an in clause.
I'm looking for the best way of loading formatted data in VBA. I’ve spent
I'm looking for the best way to use a duration field in a Rails

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.