Search icon CANCEL
Subscription
0
Cart icon
Cart
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Performance Testing with JMeter  3 - Third Edition

You're reading from  Performance Testing with JMeter 3 - Third Edition

Product type Book
Published in Jul 2017
Publisher Packt
ISBN-13 9781787285774
Pages 166 pages
Edition 3rd Edition
Languages
Author (1):
Bayo Erinle Bayo Erinle
Profile icon Bayo Erinle
Toc

Managing sessions with URL rewriting


In the absence of cookie support, the alternative method web applications use to manage session information is a technique known as URL rewriting. With this approach, the session ID is attached to all URLs within the HTML page that is sent as a response to the client. This ensures that the session ID is automatically sent back to the server as part of the request, without the need of putting it in the header. The advantage of this technique is that it works even if a client browser has cookies disabled. Let's examine a sample and see how JMeter comes to the rescue by performing the following steps:

  1. Launch JMeter.
  2. Start the HTTP proxy server (refer to Chapter 2, Recording Your First Test, if you don't know how).
  3. In the browser, go to http://sampleapp.jmeterbook.com.
  4. Click on the URL Rewrite Sample link under Chapter 4.
  5. Click on First Link.
  6. Click on Another Link (at the bottom of the page).
  7. Click on the Home link.
  8. Click on Second Link.
  9. Click on the jmeter-book link...
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 $15.99/month. Cancel anytime