-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating
Performance Testing with JMeter, 2nd Edition
By :
A majority of web applications rely on cookies to maintain the session state. In the very early stages of the Internet, cookies were only used to keep the session ID. Things have evolved since then and cookies now store a lot more information, such as user IDs and location preferences. The banking application we used as a case study in Chapter 2, Recording Your First Test, for example, relies on cookies to help each user maintain a valid session with the server, enabling the user to make a series of requests to the server. An example will help clear things up, so let's get right to one. For our example, some resources are protected based on the role of the user that is logged in. Users can have an admin or user role. The steps to manage sessions with cookies are as follows:
Change the font size
Change margin width
Change background colour