This project is read-only.

HTTP Authentication

Topics: blog, faq
Dec 1, 2009 at 2:28 AM


I was trying to build a simple web server with user authentication. My problem is not being able to retrieve current users authentication status. Even if use entered correct username and password, the login prompt will pop up after a few seconds.

In Tutorial4, it said:

// login can be fetched from IHttpSession in all modules
                login = new User(1, "arne");

But I couldn't figure out how to retrieve the "login" from IHttpSession because IHttpSession was not recognized as a valid variable in my function handling http request. Can anybody help to give an exmaple?

Thank you.



Dec 15, 2009 at 7:39 AM