tags:

views:

40

answers:

3

Please tell me how apache server store each logged user's session details.

A: 

Basically in PHP Sessions, the server will use eithers cookies or URL rewriting.

  • If cookies are enabled, it will store the sessionID in a cookie.
  • If cookies are disabled, it will pass the sessionID using a parameters (GET) by appending forms with a hidden elements and links with the ID.
Konerak
A: 

I have never heard of Apache storing any session details.
Apache is HTTP demon and HTTP is stateless protocol, with no session support.

You're probably talking of some language emulates stateful connection, using cookie or query string to pass a session identifier.

Col. Shrapnel
Correct, but he tagged the question php5 :)
Konerak
ok, How it Identifies different users at a time?
learner
well, it's possible duplicate then
Col. Shrapnel
yes I am sorry.
learner
A: 

PHP stores session data as text files on disk. The browser is then assigned a cookie which identifies which session that belongs to that browser.

Emil Vikström