As I am new to Sitecore and working on session time out functionality in Sitecore. Instead of redirecting to login page I've to display session time out warning message to end user and How to validate at server side whether user session is timeout or not?
How can this be achieved in Sitecore? Can it be done in Sitecore as same as normal ASP.net session timeout as below ?
if(Session["mykey"] != null)
{
// Session is not expired
}
else
{
//Session is expired
}
What is a better approach to implement it?
If there is any source related to better approach to validate session time out in Sitecore, Please provide blogs/articles. Any suggestion would be very helpful.
Thanks & Regards.