As we discussed that if we want to track user related information or action performed by user we need to maintain session. There are several ways to maintain session as follows. Saving data in Cookies Saving data in hidden field Session management URL rewriting let's have a look one by one each of these ways. 1. Cookies Cookie is a small piece of data sent from website to the client. Containing information like session id, user id etc. Cookie is a small piece of data sent from a website and stored in the user's browser how you can check cookies related data in your computer system if you are a windows user then w Cookie is a small piece of data sent from a website and stored in the user's web browser while the user is browsing it. Every time the user loads the website, the browser sends the cookie back to the server to notify the user's previous activity. [1] Cookies were designed to be a re...
Before getting into the second step towards security we should know about session and session management . Session : session is the time interval in which an user interact with your application. Like In simple wording time from login to logout is one session. Session basically use to track user information and state. Why Session why we need session in our application: Actually we use HTTP or HTTPS protocol for communication purpose in web applications. HTTP protocol is a state less protocol that means after generation result for your request it do not know you, second request will be considered as a new user request. It means after generation result application do not have any information regarding previous communication. This is the basic nature of HTTP protocol. So to track all action performed by user in particular time interval session concept introduced. there are following way to track user information:...