I am using WebSecurity in my project, and sometimes it shows the current user id as -1 (but that user actually is Id = 1)
here is the code line
Obj.CreatedBy = WebSecurity.CurrentUserId;
Does anyone know why that happens? It is not that WebSecurity.CurrentId doesn't yeild be correct results, but it only did for 2 times. everything is working fine in my code, was just curious why that happened.
here is a snap of my db table records where it is saved as -1