what is the difference between session and cookie ?
1)Session is stored in server but cookie is stored in client.
2)Session should work regardless of the settings on the client browser. There is no limit on the amount of data that can be stored on session. But it is limited in cookie.
3)Session can store objects and cookies can store only strings.
4)Cookies are faster than session.