Eric Gross wrote:
In creating my app, Im trying to figure out the best way to save the page referrer information.
So far I've been flashing the referrer information across pages using flash.keep. Im not using session because I heard that "sessions don't scale well" or something like that.
What's the best way to store the referrer information. Why can't we just use a global variable like $url_referrer.
I understand that it isnt good to make global variables, but in this case, I will just be using it to referrer the user. I just have to make sure that I set it to the right value for the user.
Not sure I understand completely, but to log the referrer I would do the following:
1. detect when a new session is created 2. if new (first time), log the referrer to referrer_log otherwise do nothing
Capturing the referrer at first visit will give you external referrers, in most cases. I am assuming you don't want to log local referrers.
If this is not what you want perhaps you can provide more detail.
Long www.edgesoft.ca/blog/read/2 - rails articles