Ok. I can't really solve what I want - so if you can please advise me on how to:
I have a page of each every click has ajax call to my server (hence, the ASP extends the session)
I have ASP.NET session set to Xmin. I want when X+1 min expires, I have expiration page. what I did was to set the JS timer to validate every x+1min to see if the session expired (the problem is that the JS and the ASP session timeouts are not synced)
how can I make them be synced?
every time you make an ajax call reset your timeout agian. so they will be synced...
I say that you can not absolute synchronized them because they run on 2 different computer that you can not control the one of them. So is better find other way to do what you try.
Here are similar links.
http://forums.asp.net/p/1207721/3094847.aspx
http://www.codeproject.com/KB/scripting/Session_Timeout.aspx
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.