Forum Discussion
felix001_29321
Nimbostratus
May 30, 2012Creating a HTTP session ID
Im looking for a way to create/insert a session id for each HTTP request that goes through the LB. The insertion of the header will be straight forward but its the creation of the session ID im still ...
Richard__Harlan
May 30, 2012Historic F5 Account
There is no direct way to get a session information from the LTM that I know of. But you can create your own session information from what the LTM has. But the question is what is the back end app? Can you create the session information based on what the APP passes.
If not you can create session information on the information in the packet and then add it to the session table and add it to the cookie insert. Though by default the cookie insert is done on the client side. If you need to pass the information back to the server to create state you will have to insert the cookie on the server side. Now I am guessing that is what you are trying to do is create state on the servers them self. If that is the case you can create a session key based on the client info, IP:port. Though with this information a you can get more then one session per browser session. You could also hash out the client User-agent and IP, this should force each browser session to have the same session information though it could lead to more then one client to have the same session ID.
I guess long story short we need a little more info to give good information, what will you be using the Session info for? Is this just for pirest info on the LTM if so you can just use cookie insert. From there I think I can give you a better idea then the random idea above. Though I hope this rambling post helps a little :)
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