why do we need session?
actually what stored in a session?
also with a small example?
1) HTTP is a stateless protocol, it can?t hold the client information on page. In other words after every request and response the server does not remember the state, data and who the user was. If user inserts some information, and move to the next page, that data will be lost and user would not able to retrieve the information. So, Session provides that facility to store information on server memory.
2)Variables are stored in session.
3) Have a look at the following link: