how to get LoginDateTime, LogOutdateTime,in ASP.NET
in my Application how to get LoginDateTime, LogOutdateTime, IPAddress, UseSearchInformation and UserName in ASP.Net and i need to store database when user was loggedin DateTime and LoggedOut DateTime,IPAddress, UseSearchInformation thease data want to be inserted into table. how to do please give me any suggests....
Sanjay KumarPosted Oct 30, 2013, 5:03 AM
http://www.developerscode.com/2013/01/track-user-login-information-using.html
Sanjeeb LenkaPosted Oct 30, 2013, 7:55 AM
for server ip:
string serverip== Request.ServerVariables["REMOTE_ADDR"];
for client or your system ip:
string clientip= System.Net.Dns.GetHostAddresses(System.Net.Dns.GetHostName()).GetValue(1).ToString();
manjula dPosted Oct 30, 2013, 7:33 AM