Identity cookie expiry


How would I redirect to login page AUTOMATICALLY, if my Identity cookie has expired at "ExpireTimeSpan" value? I do understand there is an event "OnRedirectToLogin" but that doesn't get triggered unless a request comes through. Is there a way, I can redirect to login right after the cookie has expired rather than keep sending requests to verify it has timed out?


Unless I misunderstand, what you want is the server to reach out to the client, but standard client/server HTTP works the other way around. The client is supposed to send requests to the server, and at some point to get redirected if its authentication cookie has expired, but if the cookie expires and the client never ask the server for anything more ever, then it doesn't have to be told anything has expired. Communication the other way around, where servers notify clients can be achieved by several means but is to be reserved for very particular needs. Are you sure you need that?


  • Jquery Unobstrusive validation show errors manually for Valid
  • Spring MVC multiple url mapping to the same controller method
  • java Volatile/synchronization on arraylist
  • R regmatches() and stringr str_extract() dragging whitespaces along
  • Application failed codesign verification. The signature was invalid, or it was not signed with an Ap
  • Return a ranking from multiple table with mySQL
  • Verifying by-name parameters in Mockito
  • OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to api.amazonalexa.com:443
  • LightSwitch Beta 1 looking for SQL Express instead of full SQL instance
  • sort decimal in php or mysql
  • Destructuring assignment within import statements
  • refractor similar code snippet in ANT files
  • Renewing Cookie-session for express.js
  • How to Cache Images Dynamically-Generated with PHP?
  • passing parameter to server in ExtJs
  • WPF Animation doesn't run first time
  • Missing permission to control media error on Android 5/L
  • how to verify a P12 certificate using openssl?
  • Generating random numbers directly inside a .htaccess file
  • IE11 textarea loses focus if another textarea is disabled
  • sudo easy_install for SimpleITK not that easy
  • Regex for nested values
  • retrieving data from url in iphone
  • File extension of zlib zipped html page?
  • Aptana 3 remove bundle (jquery)
  • 550 Access denied - Invalid HELO name
  • Why cepheus don't send int without quotes to orion?
  • Email verification using google app script and google forms
  • Resize panoramic image to fixed size
  • How would I use PHP exceptions to define a redirect?
  • Volusion's generic SQL folder, functionality
  • How to redirect a user to a different server and include HTTP basic authentication credentials?
  • Symfony2: How to get request parameter
  • How to make Safari send if-modified-since header?
  • Web-crawler for facebook in python
  • RestKit - RKRequestDelegate does not exist
  • log4net write single file for each call to log.info
  • Getting error when using KSoap library to consume .NET web services
  • How do you join a server to an Active Directory (domain)?
  • coudnt use logback because of log4j