Thanks Erik. I missed to mention that session_ttl is set to -1.
I have gone through the code and it says that when session_ttl is set to a
negative value, the sessions table is not used rather every time a request
comes, it is sent to a backend based upon the hash function.
So, now how does pound achieve the thing being discussed in this thread?

On Fri, Sep 16, 2011 at 12:25 PM, Erik Hensema / HostingXS <
[email protected]> wrote:

> On donderdag 15 september 2011 21:09:40 Mohit Gupta wrote:
> > I'm sorry if I am asking the same question again. Let me state the
> problem
> > in more explanatory words.
> > I am using sessions based on a cookie value. This cookie is set very
> first
> > time the user comes to the site.
> > So, say a new user comes to the site. His cookie value won't be set. So,
> > pound sends it to a random backend A. Then, this backend sets some
> > persistent value X to that cookie.
>
> The backend then sends its reply back to pound, which relays it back to the
> client. Meanwhile pound records the cookie value X and stores it into its
> session table.
>
> > Now, the subsequent requests from this
> > user will contain the cookie value set to X. So, when these requests come
> > to pound, it will send them to a backend B based upon the cookie value X.
> > Now, it is very much possible that backends A and B are different. ( A -
> > randomly chosen and B -> chosen based upon the key X ).
>
> No it's not, since the cookie value is already linked with backend A.
>
> --
> Met vriendelijke groet,
>
>
> Erik Hensema
> --
> HostingXS B.V.
> eXcellent Service
>
> Support: [email protected]
> Algemeen: [email protected]
> Administratie: [email protected]
>
> Telefoon: 024 - 324 91 77
> Fax: 024 - 324 91 76
>
> Post adres:
> Postbus 5
> 6500 AA te Nijmegen
>
> Website: http://www.hostingxs.nl
> Twitter: http://twitter.com/HostingXS
>
> --
> To unsubscribe send an email with subject unsubscribe to [email protected].
> Please contact [email protected] for questions.
>



-- 
Best Regards,

Mohit Gupta
Software Engineer at Vdopia Inc.

Reply via email to