Forum Discussion
Joe_Curl_105786
Nimbostratus
May 17, 2010iRule - Insert Session Cookie
We are in need of keeping track of when someone logs into the application for the first time. We are wanting to do a session cookie insert in the iRule so we can track that. We need to do this in th...
hoolio
Cirrostratus
May 17, 2010Hi Joe,
If the application is setting a jsessionid cookie, couldn't you use that to identify which server the client needs to be persisted to? There is an existing Codeshare example which does this:
http://devcentral.f5.com/wiki/default.aspx/iRules/Weblogic_JSessionID_Persistence.html
You can create a session cookie by setting the cookie without an expire time. This is the default for the HTTP::cookie insert command:
http://devcentral.f5.com/wiki/default.aspx/iRules/http__cookie
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