Re: Global variables, affinity, and sessions w/o cookies,
John Kloian III <[email protected]> Thu, 15 Jul 2004 09:52:44 -0700 (MST)
| Newsgroups | gmane.comp.apache.mod-ruby |
|---|---|
| Message-ID | <Pine.LNX.4.58.0407150951230.24487@gandalf> |
On Thu, 15 Jul 2004, Shugo Maeda wrote: > Hi, > > Altec wrote: > > 1. Is it possible to set a global variable that is consistent across all > > Apache processes? I realized that I have 5 different global variables > > of the exact same name (a simple counter) because I have 5 Apache > > processes that appear to have their own mod_ruby instance. > > No. > > > 2. Is it possible to set server/browser "affinity" so that whenever > > possible, the same client accesses the same Apache process repeatedly > > instead of round-robin? Something like "wait", "error" or "use-any" as > > options in case the same process isn't immediately available. > > No. > > > If this isn't available with mod_ruby, do you know if there are Apache > > mods that enable affinity? > > Sorry, I don't know such mods. > > > 3. We're designing a dynamic site using mod_ruby + eruby that supports > > browsers without javascript or cookies. Do you recommend any particular > > method, library or tools to handle sessions? I'm guessing > > url-rewriting. Would appreciate your thoughts & recommendations. > > Passing session ids by QUERY_STRING is one way. But please take care not > to send session ids outside by the Referer header fields. It is probalby not the prettiest of solutions, but could you marshal the information that you would normally need in the cookie on your server and have your code validate the session against that? > > Shugo > > >