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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T06:42:58+00:00 2026-06-16T06:42:58+00:00

The current situation is that I have two separate applications. One is the one

  • 0

The current situation is that I have two separate applications.

One is the one I called *user_client* and the other is the server.

The user_client is mostly the “mark-up”, HTML stuff. This application will just throw a request to the server and receive a response. That’s all.

On the other hand, the server is a CodeIgniter installation, where its controllers will receive a request thrown by the client, process the data and send back a response.

But I am rather confused on how to I validate a user and where to store their sessions.

The problem now is that I have a login form in the user_client, and I setup JavaScript code to do Ajax calls to the server.

Something like:

success : server_path + 'login',

What I have done so far is that I used the data sent by the Ajax call to the server to validate the user and save a session.

I am doing it right? When I saved a session, it is a session of the server, right? Not the user_client.

And how do I check if the user is logged in? Is it still possible to do the following?

if (isset($_SESSION['whatever']))

What am I missing out about sessions? What are my misconceptions about sessions, because I believe there are.

  • 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-16T06:42:59+00:00Added an answer on June 16, 2026 at 6:42 am

    A session (simplified) is just a way for the server to keep track of one particular user across page requests. CI sessions will keep track of the user by creating a cookie on the client browser that saves a session id – that session id (if set up to) will be saved in the database in the “ci_sessions” (default name) table. All session data will be saved there.

    Doing it the way you suggest is fine, just be sure to use a secure connection when you pass the authentication to the server.

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

Sidebar

Related Questions

My current situation looks like this: I have these two delegates in a separate
I need to have an entity that has two separate candidate keys where one
Current situation I have two tables in my database, one for posts, and one
Here is my current situation: I have two tm structs, both set to the
We have one perplexity about current situation with TFS. There are 3 branches: Develop,
The current situation is that topics are sorted by 3 main categories. There is
I am using Asp.Net/C# in my application.My current situation is that I am using
Current situation: Ubuntu 8.04 server edition (live server) Postgresql 8.3.7 (from standard repositories) Postgis
My current situation is: I have to read a file and put the contents
Here's my current situation: I have a NSMutableArray named dictKeyArray which I assign a

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.