How to track a Session ID that is embedded in the URL Path.
About this task
If AppScan does not track session IDs correctly it will frequently fall out of session. This
section describes how to track a session ID that is embedded in the URL.
Session ID: abc34f3fa135
URL containing session ID:
http://domain.name/dir/subdir/abc34f3fa135/anotherdir?param=val
Procedure
-
Create the rule for recognizing this custom parameter:
- Open Scan Configuration > Parameters and Cookies > Custom Parameters
- Click to add a new custom parameter.
- In the Reference Name field, enter a name for the custom parameter rule.
- In the Pattern field, enter a regular expression that describes the parameter format. Example:
(abc[a-zA-Z0-9]+)
- Leave Value Group Index and Name Group Index unchanged.
- In the Location field, select Path.
- Click OK to save the changes.
-
Configure AppScan to track this custom parameter:
- Open Scan Configuration > Parameters and Cookies > Parameters and Cookies
- Click to add a new parameter.
- Set the Type to Custom Parameter.
- Select the Reference Name you assigned in the previous step.
- Select the Track this parameter during the scan check box.
- Set Track Type to Login Value or Dynamic Value as appropriate.
- Click OK to save the changes.
-
If the recorded login sequence includes a URL that contains this in-path session ID, you must
record the login again so that AppScan can track the Session ID.
-
Run a full Re-Scan or Re-Explore as needed.