Forum Discussion
Julian_Annison_
Nimbostratus
Apr 29, 2005SAP persistence using jsessionid
Below is an explanation(give to me be a SAP consultant) of what happens when a user logs into a SAP portal the jsessionid that we would like to persist on can be in the url or a cookie is there a simp...
Julian_Annison_
Nimbostratus
May 26, 2005I tried a modified version of the rules on the link you provided but no joy.
I am now looking at a slightly different approach.
In the below rule i am trying to check the URI response from a server and if it includes a jsessionid make a note of it and add it to the persistence table. This would then be checked again when a the next request was made.
I am not by any means a programmer ( just the odd bash scripts every now and then) so would appreciate any help on this.
The rule is currently not working and the log has the following error
May 26 10:05:09 tmm tmm[693]: 01220001:3: TCL error: Rule sapphire_persist - Illegal argument. Invalid server side API (line 1) invoked from within "HTTP::uri"
The GUI shows no errors when adding the rule
when HTTP_RESPONSE {
if { [findstr [HTTP::uri] "jsessionid"] } {
set jsess1 [findstr [HTTP::uri] "jsessionid" 13 ")"]
log local0. "jsessionid found, jsess is: $jsess1"
persist add uie $jsess1
}
}
when HTTP_REQUEST {
set jsess [findstr [HTTP::uri] "jsessionid" 13 ")"]
log local0. "Entering REQUEST, jsess is: $jsess"
if { $jsess != "" } {
persist uie $jsess
}
}
Thanks
Julian
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects