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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T10:38:52+00:00 2026-06-17T10:38:52+00:00

When logging in from iphone app, I call a php script login function that

  • 0

When logging in from iphone app, I call a php script login function that stores a session of the user id. Does this Id get stored on the server or on the iphone?

  $_SESSION['IdUser'] = $result['result'][0]['IdUser'];

The reason I’m asking is b/c the session is apparently not being stored when I exit the simulator and start it back up so I believe it’s being stored on the server. Would I want the session to be stored on the server if I expect multiple users to be on my app at once or would it be better on the client? How does the server know/get the session id from the client? Thanks.

Also I want my users to stay logged in. Obviously.

  • 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-17T10:38:53+00:00Added an answer on June 17, 2026 at 10:38 am

    The PHP Documentation on Sessions is pretty clear about this, but I’ll summarize:

    1. $_SESSION is stored on the server. It’s actually in a temporary file that has the session name (usually).
    2. The server identifies the user’s session via a cookie

    If it’s easy for you to have the device send the corresponding session cookie with each request (as would happen with a website) then server storage is fine for you. Otherwise, you may want to use local storage. There’s no concern about multiple users’ sessions overriding each other.

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

Sidebar

Related Questions

I want a permission that will prevent people from logging in. (So, all users
I'm creating a website and I'd like to prevent the user from logging in
I am fetching username from database when a user is logging in by his
I use a modified script from Logging into facebook with python post : #!/usr/bin/python2
I would like to allow my iPhone App users to view and select from
Is there a way in XCode4 / iPhone Simulator to see logging coming from
Looking for a php login script. I've searched stackoverflow and have seen a lot
I am interested in logging from where a user comes in order to access
I'm making some network calls in my iPhone app, and I've noticed that they're
We have .NET 4 application that does some logging. When the application is launched

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.