简体   繁体   中英

ASP.NET, cross site Session state

I need to figure out a way to check if a session in a site is up or not.

i mean: I have two application that run on the same IIS. In a page of the first app there's an iFrame in witch lies a page given by the second app... the problem is that any postback or async calls ont the iframe doesn't reset the second app timeout.

I tried doing a request clientside on the 'readystatechanged' event, but it works only for the postbacks and not for the asyncs. I'm wandering if there is a 'polling' way to check the Session state of the iFrame application from the main page...

You could implement your own session state provider that stores the session in a in a SQL database or some other external storage. Example here: http://msdn.microsoft.com/en-us/library/ms178588.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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM