02-05-2007 08:40 AM
Hello
I was wondering if it is possible to stick a session to a server using session variables (such as username) Currently I am using cookies to keep the session sticky but i also need to use the session variables.
Thanks
Donagh
Solved! Go to Solution.
02-06-2007 04:41 AM
Donagh,
the session variable are dependent on your application.
The loadbalancer only knows HTTP.
So, how does your session variable translates into HTTP data ?
Is it info inside the url ?
Is it a value in the HTTP header ?
If this is inside the HTTP body, the loadbalancer will not see it.
If you are already using a cookie to do stickyness, I think it should be enough.
Gilles.
02-06-2007 04:41 AM
Donagh,
the session variable are dependent on your application.
The loadbalancer only knows HTTP.
So, how does your session variable translates into HTTP data ?
Is it info inside the url ?
Is it a value in the HTTP header ?
If this is inside the HTTP body, the loadbalancer will not see it.
If you are already using a cookie to do stickyness, I think it should be enough.
Gilles.
02-06-2007 04:48 AM
Hi Gilles
Thanks for the reply.
The session variable is in the url. Could I do balancing with "cookiesurl" and define the variables aswell as the cookies?
I agree that cookies should be enough but application wants to do stickiness on both.
Cheers
Donagh
02-06-2007 05:09 AM
Donagh,
there is absolutely no reason to use both.
If the name is more important, than use the name.
If the cookie is more important, than use the cookie.
If one is not more important than the other, then keep using the cookie.
Another way to see it is :
if the name and the cookie refer to the same server, it does not matter which one you use.
But if they point to different servers.
What do you do ?
Which information do you use to select the server ?
The name or the cookie ?
As I said, there is no reason to use both.
Unless if one is missing.
But the problem is then to make sure it is always there.
Is there any stickyness issue currently ?
Gilles.
02-09-2007 10:02 AM
hi Gilles, the application people have used the session variable to stick to a particular webserver.
Thanks for your help
Donagh
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: