I have noticed that when the user is logged in the WebSecurity.CurrentUserID after a while will return -1, this will then return the user to the Login screen. In my login screen I have a partial which says
if(User.Identy.IsAuthenticated){
@Html.ActionLink("Dashboard", "Index", "Dashboard");
}
On debugging the issue the web security function is returning -1 however the User.Identity is showing as being authenticated. Why is there a difference and how can we get these to be the same?
Thanks Craig