Forum Discussion
zafer
Nimbostratus
Apr 26, 2008uie persistence
Hello
if the client has cookie and if client changes dynamicly ip address, i want persist this client
and if the client does not accept persistence or does not have cookie i want persist some parameter in uri
i try this solution but it didnt work
http://devcentral.f5.com/wiki/default.aspx/iRules/Weblogic_JSessionID_Persistence.html
what will be logic flow
if the client has cookie and if he changes ip address persist it
else
if the client does not have cookie or does not accept cookie, persist it' sessionid
http://somedomain.com/some/path?jsessionid=MYSESSIONID&someotherparam=FOOBAR
Could you please help me anybody
regards
zafer
12 Replies
- zafer
Nimbostratus
Aaron,
i want check jsession id value in uri and referer jessionid value; if they arent same i want block it
what do i need change in this code
regards
zafer - hoolio
Cirrostratus
You can parse the jsessionid from a header using HTTP::header value Referer. You'd want to parse the jsession id using 'jsess [findstr [HTTP::header value Referer] "jsessionid" 11 ";"]'. You could then compare that with the value of the jessionid cookie 'HTTP::cookie value jsessionid'. If it doesn't match, you could send a redirect, drop the request or take some other action.
Aaron
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
