<br>Hello Alan,<div><br></div><div>This is ramesh, I am php developer and having 4 years experience in web development.  I think you have to use session concept.</div><div><br></div><div>example</div><div><br></div><div><div>
if (!isset($_SESSION[&#39;timeout_idle&#39;])) </div><div>{</div><div>   $_SESSION[&#39;timeout_idle&#39;] = time() + 1440;</div><div>}</div><div>else</div><div>{</div><div>    if ($_SESSION[&#39;timeout_idle&#39;] &lt; time()) </div>
<div>    { session_destroy(); }</div><div>    else </div><div>    {  $_SESSION[&#39;timeout_idle&#39;] = time() + 1440; }</div><div>}</div><div><br></div><div><br></div><div>Thanks,</div><div><br></div><div>Ramesh G</div>
<div><br></div><div><br></div><div class="gmail_quote">On Wed, May 19, 2010 at 7:19 PM, Musavir Khan <span dir="ltr">&lt;<a href="mailto:musavir@vtiger.com">musavir@vtiger.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi Alan,<br><br><br><div class="gmail_quote">On Wed, May 19, 2010 at 3:22 PM, Alan Lord (News) <span dir="ltr">&lt;<a href="mailto:alanslists@gmail.com" target="_blank">alanslists@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">


On 18/05/10 16:47, Musavir Khan wrote:<br>
&gt; Hi alan,<br>
<br>
Thanks for the replies Guiseppe and Musavir.<br>
<div><br>
&gt; getchallenge reponse token is not the life time of the session with life<br>
&gt; time of token, meaning before 5mins one has to complete the loging<br>
&gt; operation.<br>
<br>
</div>Ahhh, I thought 5 minutes seemed much shorter than my own experiences.<br>
That now makes sense.<br>
<div><br>
&gt; the session time configuration is as follows.<br>
&gt;<br>
&gt; session idle timeout is 30mins<br>
&gt; session lifespan is 24hrs.<br>
<br>
</div>Could you explain a little more here please? If a session idles out<br>
after 30 minutes and I have to login again anyway what is the &quot;lifespan&quot;<br>
timer actually for?<br></blockquote><div><br>if there is now activity then the session timesout in 30mins, if there is continues activity, basically session is not idle for 30mins b/w calls then the session is terminated after 24hrs.<br>


 </div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">
<div><br>
&gt; javascript lets you run interval-ed tasks to i recommend you ping the<br>
&gt; server every 25 or 28 mins.<br>
<br>
</div>Yes, I am thinking of using the javascript setTimeout() function for<br>
this. Am I correct in assuming that I should use the &quot;ExtendSession&quot;<br>
webservices call to refresh the session timer?<br></blockquote><div><br>Extendsession is used if you plan the use webservices from withing vtiger, where the user has already logged in. any webservice call will keep it from timing out.<br>


 </div><br></div>Thanks,<br>MAK<br>
<br>_______________________________________________<br>
Reach hundreds of potential candidates - <a href="http://jobs.vtiger.com" target="_blank">http://jobs.vtiger.com</a> <br></blockquote></div><br></div>