N
NWx
Hi,
I have a ASP.NET application using forms authentication
Default page is default.aspx, and login page is login.aspx
As I perform authentication in Login page, I want to update a log table with
both successful and unsuccessful logins.
As usual, client computer connects first to default.aspx, but since it isn't
authenticated, it is redirected to login.aspx.
1. How can I get client IP address, and client browser type?
2. How can I perform reverse DNS lookup to find client DNS name?
3. I'd like to register also referrer address. But since in Login page
referrer is always default.aspx, what can I do to be able to pass the
referrer from default.aspx to login.aspx (in any variable, cache, context,
whatsoever)? Since actually no code is executed in default.aspx, to be able
to set any variable, but instead aspnet process redirect client
automatically to login.aspx.
Thank you.
I have a ASP.NET application using forms authentication
Default page is default.aspx, and login page is login.aspx
As I perform authentication in Login page, I want to update a log table with
both successful and unsuccessful logins.
As usual, client computer connects first to default.aspx, but since it isn't
authenticated, it is redirected to login.aspx.
1. How can I get client IP address, and client browser type?
2. How can I perform reverse DNS lookup to find client DNS name?
3. I'd like to register also referrer address. But since in Login page
referrer is always default.aspx, what can I do to be able to pass the
referrer from default.aspx to login.aspx (in any variable, cache, context,
whatsoever)? Since actually no code is executed in default.aspx, to be able
to set any variable, but instead aspnet process redirect client
automatically to login.aspx.
Thank you.