<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-15">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hello,<br>
<br>
For a web shop project I am using varnish for loadbalancing (and
caching of course) several web servers.<br>
When it comes to session stickyness I am using the client.ip
stickyness of the backend director.<br>
<br>
In vcl_recv:<br>
<br>
<tt> ## Use ClientIP for loadbalancer stickyness (and regard SSL
offloading)<br>
if (req.http.X-Forwarded-Proto ~ "https") {<br>
set req.http.X-Client-Identity = req.http.X-Forwarded-For;<br>
if (req.http.X-Client-Identity ~ "\,") {<br>
set req.http.X-Client-Identity =
regsuball(req.http.X-Client-Identity, "\s\,.*$", "");<br>
}<br>
}<br>
else {<br>
set req.http.X-Client-Identity = client.ip;<br>
}<br>
set client.identity = req.http.X-Client-Identity;<br>
</tt><br>
It seems that when a customer resturns after approximately 30
minutes the stickyness is lost and the customer needs to login
again.<br>
<br>
Is there any timeout / expiry value I can change in order to prolong
the director stickyness?<br>
<br>
What I've found is the sess_timeout value which is configured to be
5 seconds as a default value<br>
which doesn't fit our experience but still sounds somehow like the
wrong place.<br>
<br>
Any advice would be great. ;-)<br>
<br>
Best regards,<br>
Stefan<br>
<br>
<div class="moz-signature">-- <br>
<style>
.FONT8B {font-family:Geneva,Arial,Helvetica; font-size:8pt; color: blue }
.FONT8S {font-family:Geneva,Arial,Helvetica; font-size:8pt; color: #404050 }
</style>
<p class="FONT8B"><b>Dipl.-Inform. Stefan Pommerening<br>
Informatik-Büro: IT-Dienste & Projekte, Consulting &
Coaching</b><br>
An der Kappe 171 B, 13583 Berlin, Germany, Email: <a
href="mailto:pom@dmsp.de">pom@dmsp.de</a><br>
Telephone(Office): +49-(0)30 / 375 84 888, Mobile: +49 - (0)179
/ 394
80 72<br>
Fax(Office): +49-(0)30 / 604 8594, <a
href="http://www.dmsp.de/">http://www.dmsp.de</a></p>
<p class="FONT8S">
Der Inhalt dieser E-Mail ist vertraulich und ausschließlich für
den<br>
bezeichneten Adressaten bestimmt. Wenn Sie nicht der vorgesehene<br>
Adressat dieser E-Mail oder dessen Vertreter sein sollten, so
beachten<br>
Sie bitte, dass jede Form der Kenntnisnahme, Veröffentlichung,<br>
Vervielfältigung oder Weitergabe des Inhalts dieser E-Mail
unzulässig<br>
ist. Wir bitten Sie, sich in diesem Fall mit dem Absender der
E-Mail in<br>
Verbindung zu setzen.</p>
</div>
</body>
</html>