Click here to Skip to main content
15,887,434 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have logged in as gsam and i am in the edit page details of product . now suddenly if the user session is expired, i would like to notify the user that the session has expired and need to login again.

Also the user should be able to store the datas until where ever he /she has entered the product details.

What I have tried:

I have checked like this in edit product details page.

In Pageload of edit product details
--------------------------------------
if (Session["User"] != null)
{
//continue with user editing the product details.
}
else
{
//Message box showing that the user expired and need to login again to edit the product details.
//also notify the user that wherever you have entered the details will be stored.
}
Posted
Updated 5-Apr-16 18:00pm

1 solution

Here is your answer - Alert Session Time out in ASP.NET[^].
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900