Hmm. I don't have this issue at all. If I repeatedly refresh the page (before
the expiry time) it never redirects to the other page.
1) Your browser may be caching this, so you can try some no-cache code.
2) You can also try script - using window.setTimeout or setInterval and then
location.href =newpage.aspx
Peter

Signature
Recursion: see Recursion
site: http://www.eggheadcafe.com
unBlog: http://petesbloggerama.blogspot.com
bogMetaFinder: http://www.blogmetafinder.com
Thank you for the feedback Peter. You are right Thanks..
But i have another doubt,
The client will redirect with the above code, how will the server know
that the client has redirected to another page thou ?
Peter Bromberg [C# MVP] - 16 Jul 2007 20:42 GMT
Response.AppendHeader("Refresh", Convert.ToString((Session.Timeout *
60) - 1180) +"; URL=index.aspx?id=" + youruserId.ToString() );
Pick up the Request.QueryString["id"] in the target page.

Signature
Recursion: see Recursion
site: http://www.eggheadcafe.com
unBlog: http://petesbloggerama.blogspot.com
bogMetaFinder: http://www.blogmetafinder.com
> Thank you for the feedback Peter. You are right Thanks..
>
> But i have another doubt,
>
> The client will redirect with the above code, how will the server know
> that the client has redirected to another page thou ?
Juan T. Llibre - 16 Jul 2007 20:52 GMT
re:
!> how will the server know that the client has redirected to another page though ?
It won't...unless you include the user's info in the querystring or in a hidden field.
Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
> Thank you for the feedback Peter. You are right Thanks..
>
> But i have another doubt,
>
> The client will redirect with the above code, how will the server know
> that the client has redirected to another page thou ?
Göran Andersson - 17 Jul 2007 12:26 GMT
> Thank you for the feedback Peter. You are right Thanks..
>
> But i have another doubt,
>
> The client will redirect with the above code, how will the server know
> that the client has redirected to another page thou ?
The only way the server can know that is that the browser is requesting
the "another page".

Signature
Göran Andersson
_____
http://www.guffa.com
Astrix - 17 Jul 2007 16:18 GMT
Thankyou all for the comments, I now understand the concept.
Thankyou,
Astrix