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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T12:24:56+00:00 2026-05-16T12:24:56+00:00

I am making an IPhone app in which userid and password is required in

  • 0
  1. I am making an IPhone app in which
    userid and password is required in
    all the screens to make requests to
    the server, and I am thinking of
    saving those 2 values in
    NSUserDefault instead of passing an
    object around.

  2. I am also thinking it will be useful if user has logged in once,
    and use the app again then user
    don’t have to enter his/her details
    again.

But I am curious if it will be safe/good practice to use for first requirement?

  • 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-16T12:24:57+00:00Added an answer on May 16, 2026 at 12:24 pm

    I don’t have anything against save these data on the user defaults. What I don’t get is the idea to expose the user credentials on each request.

    I would suggest you to ask for the credentials once, authenticate with your server and return a “session token”. save this token and use it to validate the user on each request. (it means that you will save the token on you server or you will check the token using an algorithm)

    Doing this you don’t expose the user credentials all the time, you have control over the session, and you can expire it when you want, forcing the user to logging again.

    For more complex implementations, you could Google for OAuth or XAuth and some related methods of authentication.

    Cheers,
    vfn

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

Sidebar

Related Questions

I am making an iphone app which requires me to make use of website
I am making an iPhone app which has its database on the web server.
I am making an application (iPhone app) which gets information (jokes) from an RSS
I am making an iPhone app which uses UIButton s with Placeholder text on
I am making an iPhone app which needs to send a couple of arrays
I'm making an iPhone app in which I retrieve JSON data from http://maps.googleapis.com/maps/api/geocode/json?address=canada&sensor=true ,
My iPhone client app uploads a data to the server, which runs on PHP.
I am making an iPhone app in which on one of the UIWebView I
Hello I am new to iPhone development and I am making an app which
I am making an iPhone app which has ASCII art. I face a problem

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.