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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T15:55:12+00:00 2026-06-09T15:55:12+00:00

I am a .Net developer and very new to Xcode. I am using WCF

  • 0

I am a .Net developer and very new to Xcode. I am using WCF for the server side process and send/receive JSON data between iphone app and WCF. I want the native iPhone app to do below:

  1. Registration and Login view
  2. Once user click login button, it sends username and password entered in JSON format to my WCF service to authenticate, if login is valid, WCF will return a valid member GUID and a token string
  3. iPhone app receives the member guid and token, and stores them in a “persistent variable”, and I will load new views for authenticated users. So member has access to all functions/views.
  4. Every time I post data between iphone app and WCF, I need to use that member guid and token from the variable so the WCF service knows which member is requesting data.
  5. Every time user shutdown or restart iphone, I hope my app can remember the member guid, so they don’t have to login again.
  6. User can click a logout button, and it will clear the variable and return to login view.

I am not sure if this is the correct way of iphone app login process?

I have already done WCF authentication and send back JSON, but now I need to store member GUID, Can someone please point me to the right direction? What should I use to store that information that can be used later on? An example would be great!

  • 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-09T15:55:13+00:00Added an answer on June 9, 2026 at 3:55 pm

    Sounds like the perfect sort of thing for the NSUserDefaults. Use them like this:

    NSUserDefaults *myUserDefaults = [NSUserDefaults standardUserDefaults];
    [myUserDefaults setObject: @"the key" forKey: @"key"];
    

    You can also use other functions to set different kinds of data, like setInteger:forKey: or setValue:forKey:. To recall your data, use this function:

    NSString *theKey = [myUserDefaults objectForKey:@"key"];
    

    and the return value will be the object you stored in it. Other data types work similarly with functions like integerForKey: and valueForKey:.

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

Sidebar

Related Questions

I am basically a .net developer and very new to jsf, so it may
I'm a .Net Developer and new to Java environment. I'm currently I'm using Netbeans
Fist off, I'm very new to ASP.NET and Visual Web Developer Express. I have
I'm a .NET developer who knows very little about Python, but want to give
I've developed a very simple ASP.NET (jQuery) application. The RDBMS is MS Sql Server
I'm a .NET developer who needs to use the Java platform for a new
I am an experienced .NET developer but new to EF - so please bear
I'm a fairly experienced .NET desktop developer, but I'm new to Silverlight. I'm trying
I am fairly new to both RoR and refinery CMS (although, very seasoned C#/ASP.net
I am in the process of re-writing some very outdated .NET 2.0 SOAP web

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.