Forum Discussion
hooleylist
Jan 24, 2012Cirrostratus
Can you just remove it from the requested URI? If so, you can use an iRule like this:
when HTTP_REQUEST {
Check if the path contains a jsessionid
if {[HTTP::path] contains ";jsessionid="}{
Split the path on the jsession ID and update it to the first field
HTTP::path [getfield [HTTP::path] ";jsessionid=" 1]
}
}
Or if you need to hide the JSESSIONID from the client you'd need to rewrite the response content using an stream profile and STREAM::expression iRule. You could use a STREAM::expression like:
STREAM::expression {@;[jJ][sS][eE][sS][sS][iI][oO][nN][iI][dD]=[a-zA-Z0-9]*@@}
http://devcentral.f5.com/wiki/iRules.stream__expression.ashx
Aaron