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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T07:48:27+00:00 2026-06-13T07:48:27+00:00

I have a REST-full setup where a PHP server sends REST requests via XML

  • 0

I have a REST-full setup where a PHP server sends REST requests via XML to another python server. I would like to implement sessions on the python server so that after authentication, subsequent requests will not have to send authentication information.

I have implemented the python bit and tested with a web browser. It works fine. However, performing requests from a php script to the said python server seems to create a new session each time since printing out the SESSION_ID, I get new values for each request.

So my question is, how can I make the PHP(Apache) server retain state for sessions just as normal browsers do?

  • 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-13T07:48:28+00:00Added an answer on June 13, 2026 at 7:48 am

    Reading from another question with a similar issue,

    By stateless it means that the web server does not store any state about the client. That does not preclude other services that the web server talks to from maintain state about business objects, just not about the clients connection state. The clients state should not be stored on the server, but passed around to everyone that needs it. That is where the ST in REST comes from, State Transfer. You transfer the state around instead of having the server store it. This is the only way to scale to millions of users.

    The load of session management is amortized across all the clients, the clients store their session state and the servers can service an order of magnitude or more clients in a stateless fashion.

    The other question here

    So ALL in ALL, as much as there might be ‘hacks’ and ‘workarounds’ for this problem, it seems that fundamentally, maintaining state server side between REST-full requests negates the original architectural design.

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

Sidebar

Related Questions

I have a REST service that returns a JSON like this: [{@id:123,name:Name}] and I'm
So I'd like to have a full screen splash (320x480 - without status pane
I have a XML response from an Ajax REST call. Similar to the one
i have an object that is something like this with a full namespace. MyDomainModel.Model.Application
I have a button that if a circumstance happens I would like for it
I am developing an application with REST full web service .Now i have some
I have a scenario in which I have REST API which manages a Resource
I have a REST service for which I have a WADL file. I want
I have a REST API using Django Tastypie. Given the following code The models
I have a REST endpoint accepting a POST request to mark a code as

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.