You haven't said where you are writing this code. Using Session on its own tends to only work in a controller. Elsewhere you might need to use
System.Web.HttpContext.Current.Session["USERID"] = "xyz";
Note that it is designed that way for a reason, if that is the issue then you might be trying to access the Session somewhere you shouldn't.