Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

How Apache server keeps track of user session variables.

share|improve this question

2 Answers 2

It's normally not apache's job to keep track of user session variables, but a task for your application.

Typically, all session handling is based on cookies. The web server (or web app) generates a cookie with a unique value and sends it to the client. In the following requests, the client will send that cookie back to the web server/app.

Your application then can use the value of the cookie to locally (filesystem or database) store the session variables, and associate things with a "session".

share|improve this answer

There are a number of different possible ways. The documentation is here.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.