Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Performance Testing with JMeter, 2nd Edition

You're reading from   Performance Testing with JMeter, 2nd Edition Test web applications using Apache JMeter with practical, hands-on examples

Arrow left icon
Product type Paperback
Published in Apr 2015
Publisher
ISBN-13 9781784394813
Length 164 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Bayo Erinle Bayo Erinle
Author Profile Icon Bayo Erinle
Bayo Erinle
Arrow right icon
View More author details
Toc

Managing sessions with cookies

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:

  1. Launch JMeter.
  2. Start the Test Script Recorder (refer to Chapter 2, Recording Your First Test, if you don't know how).
  3. In the browser, go to http://jmeterbook.aws.af.cm/.
  4. Click on...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime