If your Web application uses URL rewriting instead of cookies to save session information, you need to do some extra work to test your site.
To properly address URL rewriting, JMeter needs to parse the HTML received from the server and retrieve the unique session ID, using the appropriate HTTP url rewrite modifier to complete the task. Just enter the name of your session ID parameter modifier, and it will find it and add it to each request. If the request already has a value, it will be superseded. If the session ID is cached? "Check that the last Discovery session ID will be saved and will be used if the previous HTTP sample does not contain a session ID.
example of URL rewriting
Download This example . Rewrite the test plan using URLs as shown in Figure 1. Note that URL rewriting simplecontroller adds modifiers to ensure that it only affects request simplecontroller.
Figure 1-Test tree
In Figure 2, we see a URL rewrite modifier gui that only specifies a field session ID name parameter for the user. There is also a check box indicating that the session ID is part of the path (with ";" Separate) instead of a request parameter
Figure 2-Request Parameters
JMeter using URL rewriting to process user sessions