Last post Nov 05, 2013 03:36 AM by yorky001
Oct 31, 2013 06:45 AM|yorky001|LINK
Really pulling my hair out over this. Does anyone know of full excample on how to configure IIS and a web application so that when a user access the site
I can capture their login (from their PC), in the form of domain\user.
There's lots of snippets and the only MSDN KB article I can find si for .NET2.
Some futher questions.
I'm sure this has been done a million times before and I'm missign the obvious :-(
Thanks in advance.
Oct 31, 2013 01:36 PM|bbcompent1|LINK
Give this thread on Stack Overflow a try. They discuss the exact scenario you describe. Post back if you have any questions along with any relevant code. Thanks!!! http://stackoverflow.com/questions/5529847/asp-net-form-authentication-ntlm-ldap
Oct 31, 2013 10:15 PM|jats_ptl|LINK
Do this way, you have to create one table with two fileds UserID and LoginDate. When user login using your login page then just add userid and date into this table. After this from table you can fetch number of user by providing
select * from login_user where LoginDate = getdate()
You can use Application object to store the number of users logged in to the site.
You can increment this whenever a new user logs in and decrement it when they log out.
You will have to initialize this object on Application Start in Global.Asax file.
In Session_Start increment this value
In Session_End decrement this value
Hope this helps.
Nov 05, 2013 03:36 AM|yorky001|LINK
Thanks for the info, some good examples there.