Depends on your use case I guess, but why not set a cookie for each visitor and check that way
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firstname.lastname@example.org.
To post to this group, send email to email@example.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/c3b676b0-1937-4dda-a22f-198694d7d940%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.