Forum Discussion
Brad_Wood_7735
Apr 23, 2007Historic F5 Account
.net session id
This is an interesting one. I have a .net application that i am trying to persist on .net session ID. I am capuring it and it perists ok, but the issue is that on inital connection the LTM is LB to both nodes prior to the .net session being set. I don't want to use source addy perst. because this is Natted. The application is pulling an image, which is being requested from the other server in the pool. What is a good way for me to make this persist from the first connect, but not use source addy.
Here is the Irule as it sits.
when HTTP_REQUEST {
set SessionId [HTTP::cookie ASP.NET_SessionId]
log local0. "Request SessionId is: $SessionId"
if { $SessionId != "" } { persist uie $SessionId }
}
when HTTP_RESPONSE {
set SessionId [findstr [HTTP::header Set-Cookie] "ASP.NET_SessionId" 18 24]
log local0. "Response SessionId is: $SessionId"
if { $SessionId != "" }{ persist add uie $SessionId }
}
- hoolio
Cirrostratus
A few stabs in the dark... - Deb_Allen_18Historic F5 AccountTurns out that the sessionID's being set by the server in this case are actually longer than 7 characters, so the persistence entry never matches the cookie value.
- Brad_Wood_7735Historic F5 AccountThey have non standard browser and WAP device support, so oookies were not a long term option.
- Mike_Graston_10
Nimbostratus
Ok, I have a very similiar issue here. I do a cookie insert via the ltm but still recieve errors like everyone else on the planet. The asp session id sounded like it would have worked if it was only 7 characters. Well that's not going to work here. I do need to insert a cookie and the path has to equal a forward slash "/" to get around the asp 2.0 issue. I will open another topic if no one is monitoring this still. I really don't have a clue on this kind of intense scripting. any help would be appreciated. - hoolio
Cirrostratus
xf6svrb, you might do well to start a new post detailing the exact issue(s) you're encountering and what you'd like to try to do using an iRule to fix them. - Deb_Allen_18Historic F5 Accountthat's what the rule above does, hoolio, and I agree that xf6svrb should start a new post with details of the specific problem he is trying to solve.
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