cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
472
Views
4
Helpful
4
Replies

sticky using session variables

donaghq_2
Level 1
Level 1

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

1 Accepted Solution

Accepted Solutions

Gilles Dufour
Cisco Employee
Cisco Employee

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.

View solution in original post

4 Replies 4

Gilles Dufour
Cisco Employee
Cisco Employee

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.

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

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.

hi Gilles, the application people have used the session variable to stick to a particular webserver.

Thanks for your help

Donagh

Getting Started

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: