<div>Hi Nancy</div>
<div>Thanks for help.</div>
<div> </div>
<div>Initially I thought so and gave a try for _init() hook. It looks it gets called always either it is first time page load, or a page refresh 9F5 in windows env) or even during AJAX events. Even I tried _exit() hook, looks it is also invoked always.</div>

<div> </div>
<div>I am looking for a hook that gets invoked for first time page load and on page refresh, but should not be invoked during AJAX events.</div>
<div> </div>
<div>So still searching if any such hooks are available that gets invoked only during <strong>first time page load and on page refresh</strong>.<br></div>
<div>Thanks</div>
<div>Kamal</div>
<div>Net Cloud Systems</div>
<div>Bangalore</div>
<div><br> </div>
<div class="gmail_quote">On Mon, Sep 24, 2012 at 4:03 PM, Ms. Nancy Wichmann <span dir="ltr">&lt;<a href="mailto:nan_wich@bellsouth.net" target="_blank">nan_wich@bellsouth.net</a>&gt;</span> wrote:<br>
<blockquote style="BORDER-LEFT:#ccc 1px solid;MARGIN:0px 0px 0px 0.8ex;PADDING-LEFT:1ex" class="gmail_quote">
<div>
<div style="FONT-FAMILY:arial,helvetica,sans-serif;FONT-SIZE:12pt"><a href="http://api.drupal.org/api/drupal/modules!system!system.api.php/function/hook_init/7" target="_blank">http://api.drupal.org/api/drupal/modules!system!system.api.php/function/hook_init/7</a> 
<div><span><br></span></div><font color="#ff007f" size="4" face="bookman old style, new york, times, serif"><i><b>Nancy<br></b></i></font>  
<div><font face="arial, helvetica, sans-serif">Injustice anywhere is a threat to justice everywhere. -- Dr. Martin L. King, Jr.</font></div>
<div style="BACKGROUND-COLOR:transparent;FONT-STYLE:normal;FONT-FAMILY:arial,helvetica,sans-serif;FONT-SIZE:16px"><br>
<blockquote style="BORDER-LEFT:rgb(16,16,255) 2px solid;MARGIN-TOP:5px;PADDING-LEFT:5px;MARGIN-LEFT:5px">
<div style="FONT-FAMILY:arial,helvetica,sans-serif;FONT-SIZE:12pt">
<div style="FONT-FAMILY:times new roman,new york,times,serif;FONT-SIZE:12pt">
<div dir="ltr"><font face="Arial">
<hr size="1">
<b><span style="FONT-WEIGHT:bold">From:</span></b> Kamal Palei</font><br></div>
<div class="im"><br>
<div>
<div>Hi List</div>
<div>I want to know is there any API in D7 is invoked when a page loads for first time or during page refresh/reload.</div>
<div>During anyother time that particular api should not be invoked.</div>
<div> </div>
<div>I have a custom form, and I keep certain variables in $_SESSION. During first time page loads I want to reset the session variables.</div>
<div>Also during page refresh (for windows IE F5) also I want to reset session variables.<br></div></div></div></div></div></blockquote></div></div></div><br>--<br>[ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br>
</blockquote></div><br>