i am using form authentication but some time i notice user authentication is lived but my session expire. So guide me how to set same expiring time for both.
if i store something in session variable after login that will set to null if my session timeout occur?
this way i check before allowing to execute other code in server side function.
if (HttpContext.Current.User.Identity.IsAuthenticated && HttpContext.Current.Session["Email"] != null)
{
}
if always check before accessing few server side method that if user is authenticated and HttpContext.Current.Session["Email"] is not null then i allow to made the call of those few function. i saw IsAuthenticated is returning true but HttpContext.Current.Session["Email"] is getting null.
how to handle this situation. looking for your guide line. thanks