To learn more, see our tips on writing great answers.

If it does exist and is set to true, the tour does not start, otherwise it runs.

How do I remove a property from a JavaScript object?

How to tell a colleague I don't think he's qualified for a Lead role? your coworkers to find and share information. Are there any examples in D&D lore (all editions) of metallic or chromatic dragons switching alignment? Algebraic independence of shifts of the Riemann zeta function. In fact, IsRefresh will continue to report true for the page for as long as the Session object stays in existence, and will do so for normal postback processing or whenever Please note that I should be able to do this in any browser (Firefox/IE). Yeh that makes sense.

Sharepoint Minimal Download Strategy is a feature which does a lot of caching for you and - to achieve that - does partial site loads. Is it at all possible (or safe) to pursue a pilot's license with a history of mental illness? you can use Page.IsPostBack prorety to check whether is loading first time or is it a post pack request... protected void Page_Load(object sender, EventArgs e) Splinter, Cant click an element.

But this answer is shorter, more reliable and faster. It seems to me that this problem occurs because it is not a complete pageload. You can move the code you have for initializing and starting the tour into a separate function and call it when the link is clicked (as well as for first login). You're overthinking it by constraining yourself from hitting the db IMO. Click the browser's back button. Allow them to be able to manually execute the tour at a later date if they want, by simple pressing a link. and ? if user opens Chrome, turns off tour, then later opens Firefox say on different computer, you'll still know not to present them with the tour. If it returns false, then you know that this is the initial page load.

           // this code will execute only first time when the page loads.......... In this model, each time a user visits a page that has this feature, you check for a "visited" value associated with that user in Redis. And I've tested my codes it seem working well……What I want to ask is:Will this have bad effects?, I've said before that IsPostBack is for checking "PostBack" when doing something like submit,What I want is checking refresh!I mean click F5,DO YOU THINK THIS CAN BE CHECKED WITH ISPOSTBACK????. I want to write an application that detects when a page is loaded in the browser, then I should be able to insert content on top of the loaded web page? How do I detect a click outside an element? Hi, How to Run a Javascript function on Page Load first time and Maintain it through out Session. You most probably have the Minimal Download Strategy Feature enabled, disabling that is quickest way to "workaround" this issue unless you really need/want to have that enabled.