How can I determine if a user is hitting my site from elsewhere (i.e. from a new tab or another site)? I need to present a 'welcome back' message to returning users who are still logged in, but I don't want it appearing if they're just navigating within my site or, say, reloading the homepage.
I've considered using Onload/Onbeforeunload
(or similar) to keep track of whether there is currently a view open, but this just adds complexity.
Can I assume that if Request.UrlReferrer
doesn't contain my domain then it's a 'fresh' visit?