Aha, is there any way to figure out where a user comes from every
time?

On Mar 2, 5:53 pm, Hassan Schroeder <[email protected]>
wrote:
> On Tue, Mar 2, 2010 at 5:30 PM, David <[email protected]> wrote:
> > I'm trying to save the site that a user came from when they sign up.
> > Right now I have a before_filter in my ApplicationController:
> >      session['referer'] = request.env["HTTP_REFERER"] unless
> > session['referer']
> > Then when a user is created, it checks this session variable and sets
> > it to nil. This is buggy as it only works sometimes and I cannot seem
> > to figure out why.  Any ideas what could be going on?
>
> Because HTTP_REFERER is *not* a required header, and in fact
> some security software blocks it for privacy reasons.
>
> So you just can't count on it being available.
>
> --
> Hassan Schroeder ------------------------ [email protected]
> twitter: @hassan

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to