<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style>body{font-family:Helvetica,Arial;font-size:13px}</style>
</head>
<body>
<div style="font-family:Helvetica,Arial;font-size:13px; ">Hi Esteban,</div>
<div style="font-family:Helvetica,Arial;font-size:13px; "><br>
</div>
<div style="font-family:Helvetica,Arial;font-size:13px; ">that’s probably due to how cookies work in general (they contain their path and only apply there, so if you open / it doesn’t send the cookies for /app).</div>
<div style="font-family:Helvetica,Arial;font-size:13px; ">You could have a default-dispatcher that redirects to /app to avoid the problem.</div>
<div style="font-family:Helvetica,Arial;font-size:13px; "><br>
</div>
<div style="font-family:Helvetica,Arial;font-size:13px; ">Kind Regards</div>
<div style="font-family:Helvetica,Arial;font-size:13px; ">Karsten</div>
<br>
<div class="gmail_signature">
<div>— </div>
<div><br>
<span style="white-space: pre-wrap; font-family: -apple-system; font-size: 14px;">Georg Heeg eK</span></div>
<div>
<div class="gmail_signature amz_quote_hidden" style="font-family: -apple-system; font-size: 14px;">
<pre style="white-space: pre-wrap; word-wrap: break-word;">Wallstraße 22
06366 Köthen

Tel.: 03496/214328
FAX: 03496/214712
Amtsgericht Dortmund HRA 12812</pre>
<div><br>
</div>
</div>
</div>
</div>
<br>
<p class="airmail_on">Am 17. August 2020 um 18:32:58, Esteban Maringolo (<a href="mailto:emaringolo@gmail.com">emaringolo@gmail.com</a>) schrieb:</p>
<blockquote type="cite" class="clean_bq"><span>
<div>
<div></div>
<div>Hi all,<br>
<br>
I recently moved to `WACookieForBrowserIPForCrawlerTrackingStrategy`<br>
tracking strategy, but I noticed that the session count was increasing<br>
beyond the actual "normal" use, suggesting a new session was being<br>
created everytime.<br>
<br>
Then I noticed that when I perform a request to the default<br>
dispatcher, it creates a new session, because the cookie is created<br>
with the app path so the browser is not sending it back when visiting<br>
the root.<br>
<br>
I have the default name for the dispatcher as:<br>
WAAdmin defaultDispatcher defaultName: 'app'.<br>
<br>
If I visit this:<br>
http://localhost:8080/app<br>
I get a new cookie (if needed) and subsequent requests don't create a new one.<br>
<br>
If I visit<br>
http://localhost:8080/<br>
I get a new cookie (and a new session is created) each time because<br>
the cookie is created with the `/app` path.<br>
<br>
Did this happen to anyone else?<br>
<br>
Regards!<br>
<br>
Esteban A. Maringolo<br>
_______________________________________________<br>
seaside mailing list<br>
seaside@lists.squeakfoundation.org<br>
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside<br>
</div>
</div>
</span></blockquote>
</body>
</html>