I'm evaluating Padarn for my project and I'm trying to implement a very simple authentication scheme:
namespace SampleSite
{
public class Login : Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (Request.Form["login"] == "admin" && Request.Form["password"] == "123")
{
Session["username"] = "admin";
Response.Redirect("PostFiles.html");
}
else
{
Response.Redirect("Default.aspx");
}
}
}
}
It's working fine for a single user, however, when my friend tried to hit the page while I was debugging, a NullReferenceException was thrown at
Session["username"] = "admin";
Then we realized it's not working for concurrent users.
Are concurrent sessions really not supported? Is this some configuration I'm missing?