Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Wrong Plack session behavior

by beautyfulman (Sexton)
on Dec 19, 2021 at 02:43 UTC ( [id://11139713]=perlquestion: print w/replies, xml ) Need Help??

beautyfulman has asked for the wisdom of the Perl Monks concerning the following question:

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

    As you use session-based cookies, have you looked at what cookie values the browsers get?

    Personally, I would not use Memcached while debugging a session/storage problem. Start with Plack::Session::Store::File and without a cache to eliminate Memcached as a problem source and to make it easy for others to replicate your problem.

          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?

    Log In?
    Username:
    Password:

    What's my password?
    Create A New User
    Domain Nodelet?
    Node Status?
    node history
    Node Type: perlquestion [id://11139713]
    help
    Chatterbox?
    and the web crawler heard nothing...

    How do I use this?Last hourOther CB clients
    Other Users?
    Others scrutinizing the Monastery: (4)
    As of 2024-04-24 02:52 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      No recent polls found