You can set following code in your Global.asax
void Session_Start(object sender, EventArgs e)
if (Session["UserID"] == null)
Please do let me know, if you have any doubt.
Please provide "Vote
":thumbsup: if this would be helpful, and make "Accept Answer
" if this would be correct answer.:rose: