I'm doing some help on a tutorial, blog entry, or technology behind websites that automatically push users Is a postback) Any help when the session ends is appreciated
Generally , You set a session timeout, and you can add additional page headers to the current page automatically redirect to that page Do where you clean the session before the session ends.
Namespace session ExpirePage {Secured with public partial squares: System.Web.UI .masterpage {public int session lilometry} {Return session. Get timeout; }} Public string session ExpireDestinationUrl {get {return "/ sessionExpired.aspx"; }} Protected Override Zero Opener (EventEurge E) {base.OnPreRender (e); This.page. Read. Control Add (new literal control (string.format ("& lt; meta http-equiv = 'refresh' content = '{0}; url = {1}' & gt;", session linkage minutes * 60, session ExpireDestinationUrl) ); }}}
The session should link ExpirDestinationUrl to the page where you clear the session and any other user data.
When the refresh header ends, on that page.
Comments
Post a Comment