---
title: "User's Manual: Building an Advanced Web Test Plan"
description: "Advanced JMeter web test plans: handle URL rewriting and session management for cookie-less apps using the HTTP URL Re-writing Modifier."
url: https://docs.jmeter.ai/user-manual/build-adv-web-test-plan/
lastUpdated: 2026-10-01
source: docs.jmeter.ai
---

# User's Manual: Building an Advanced Web Test Plan

## 5. Building an Advanced Web Test Plan

In this section, you will learn how to create advanced
[Test Plans](/user-manual/build-test-plan/) to test a Web site.

For an example of a basic Test Plan, see
[Building a Web Test Plan](/user-manual/build-web-test-plan/).

## 5.1 Handling User Sessions With URL Rewriting

If your web application uses URL rewriting rather than cookies to save session information,
then you’ll need to do a bit of extra work to test your site.

To respond correctly to URL rewriting, JMeter needs to parse the HTML
received from the server and retrieve the unique session ID.  Use the appropriate [HTTP URL Re-writing Modifier](/components/http-url-re-writing-modifier/)
to accomplish this.  Simply enter the name of your session ID parameter into the modifier, and it
will find it and add it to each request.  If the request already has a value, it will be replaced.
If “Cache Session Id” is checked, then the last found session id will be saved,
and will be used if the previous HTTP sample does not contain a session id.

#### URL Rewriting Example

Download [this example](../demos/URLRewritingExample.jmx). In Figure 1 is shown a
test plan using URL rewriting.  Note that the URL Re-writing modifier is added to the SimpleController,
thus assuring that it will only affect requests under that SimpleController.

![Figure 1 - Test Tree](/images/screenshots/url_rewrite_example_a.png)

*Figure 1 - Test Tree*

In Figure 2, we see the URL Re-writing modifier GUI, which just has a field for the user to specify
the name of the session ID parameter.  There is also a checkbox for indicating that the session ID should
be part of the path (separated by a ”;”), rather than a request parameter

![Figure 2 - Request parameters](/images/screenshots/url_rewrite_example_b.png)

*Figure 2 - Request parameters*

## 5.2 Using a Header Manager

The [HTTP Header Manager](/components/http-header-manager/) lets you customize what information
JMeter sends in the HTTP request header.  This header includes properties like “User-Agent”,
“Pragma”, “Referer”, etc.

The [HTTP Header Manager](/components/http-header-manager/), like the [HTTP Cookie Manager](/components/http-cookie-manager/),
should probably be added at the Thread Group level, unless for some reason you wish to
specify different headers for the different [HTTP Request](/components/http-request/) objects in
your test.
