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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T09:01:52+00:00 2026-06-18T09:01:52+00:00

I have an application which uses wcf web service and after successful login, i

  • 0

I have an application which uses wcf web service and after successful login, i want to activate a session of 10 minutes. If user is idle or app is in background for 10 minutes then session should expire and app should ask for login details again.

I have used keychain for storing username and password and it works But i want to add the session so that user is redirected to main page if session is not expired and to the login page if session is expired…

I know this is repeated question but i had to write it since i am not getting proper answer from other questions. Please help..

  • 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-18T09:01:54+00:00Added an answer on June 18, 2026 at 9:01 am

    use this Link this works me.

    use NSUserDefault to create Session for ios.

    i also created Session in ios with this Tutorial.

    EDIT:

    i have a Login Screen in first Page of My application

    if Login is Successfull authenticate by server then i stored my Username & Password in NSUserDefault Like this way:

     NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
         [defaults setObject:userNameText forKey:@"username"];               
         [defaults setObject:passWordText forKey:@"password"];
         [defaults synchronize];
    

    Onclick of Login Button. & redirected to Dashboard.

    In dashboard Logout Button is there if user click Logout Delete All Data Like this way.

     NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
        [defaults removeObjectForKey:@"username"];
        [defaults removeObjectForKey:@"password"];
        [defaults synchronize];
    

    & On other condition when user close app The NSUSerDefault Are stored when u second time open app at that time Check wheather username & password stored in NSUserDefault
    During ViewDidAppear of Loginpage.

      NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
    
        // check if user is alraidy Login
        if([defaults objectForKey:@"username"]!=nil  && ![[defaults objectForKey:@"username"] isEqualToString:@""]){
            // Redirected to Dashboard.
    }
    

    If sucessfull then Redirected to Dashboard.

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

Sidebar

Related Questions

I have a WCF web service that uses ASP.NET session state. WCF sets a
I have a web application which uses the globalization values being passed from sql
I have an ASP.NET application which talks to a third-party SOAP web service. My
I have a WCF web service hosted in IIS7 which is reporting its endpoint
I have a client-server application, which communicates using WCF, and uses NetDataContractSerializer to serialize
I have a silverlight application that uses wcf service. This application is shown from
We have an WCF application which uses NHibernate to query data from the database.
We have a simple WCF (on .NET 4.0) Service which uses Windows authentication and
I have a WCF service used by some Silverlight code in our web application.
I have a WCF web service for a silverlight application that doesn't seem to

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.