in reply to Re: Wrong Plack session behavior
in thread Wrong Plack session behavior

Replies are listed 'Best First'.
Re^3: Wrong Plack session behavior
by Corion (Patriarch) on Dec 19, 2021 at 11:49 UTC

    Aaah - now I realize. You said "all other users get $session->{counter} incremented by 2". So, is it that the first user sees:

    1 <reload> 2 <reload> 3

    ... and the other users see

    1 <reload> 3 <reload> 5

    ?

    Then I would look at what requests the browsers send to your server and print out each request, and the session value before and after. Maybe the session value is also incremented for static stuff like CSS or image files? Or for the 404 page that a missing favicon.ico creates?