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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T02:23:30+00:00 2026-06-15T02:23:30+00:00

I am using asihttprequest library to make asynchronous requests to the php web services.

  • 0

I am using asihttprequest library to make asynchronous requests to the php web services. For login i am using php login web service. My problem is that the user has to login everytime the app is launched. Is there any way to check if the user was logged in before, if so then he should be auto login the next time. We can use a switch for “Keep me logged in” purpose(switch on for “Keep me logged in” and switch off for “login required for the next time”).

I think that the default has to be that the user should not have to sign in when using the app… after the first time. Maybe when they sign in the first time we note that the default has them logged in unless they check a box or a switch that they want to log in each time they use? They user should have a location where they can change their preference should they choose that option and decide to change it later to stay open.

I am using this code for login:

-(void)callWebService
{

     NSURL *url = [NSURL URLWithString:@"My_Url"];
    ASIFormDataRequest *request=[ASIFormDataRequest requestWithURL:url];

    [request setPostValue:emailField.text forKey:@"email"];
    [request setPostValue:pwdField.text forKey:@"pass"];


    [request setDelegate:self];
    [request setTimeOutSeconds:100];
    [request setUseSessionPersistence:NO];
    [request setUseCookiePersistence:NO];
    [request startAsynchronous];


    }

}
  • 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-15T02:23:32+00:00Added an answer on June 15, 2026 at 2:23 am

    You Should see this post

    iOS: How to store username/password within an app?

    and then before you make the call to your server , check if the values exists in the Keychain.

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

Sidebar

Related Questions

I am succesfuly using AsiHttpRequest library to make url connections in my apps. However,
I have a method (getAllTeams:) that initiates an HTTP request using the ASIHTTPRequest library.
I am using ASIHTTPRequest to fetch some data from a web service. I am
I am using ASIHTTPRequest, its working fine for posting dictionaries to the web service
So i am trying to make an http request using ASIHTTPRequest class , to
I'm successfully using yajl-objc along with ASIHTTPRequest in an iPhone project that does network
I'm using ASIHTTPRequest library and I want to be sure if I use it
I'm currently migrating my app from using ASIHTTPRequest to AFNetworking. I know synchronous requests
OK, I am building an application that will be using ASIHttpRequest in several places
I'm writing an iPhone Application using the ASIHTTPRequest (http://allseeing-i.com/ASIHTTPRequest/) library for REST interactions 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.