Last post Jun 27, 2011 03:07 PM by ozkary
Jun 25, 2011 06:53 PM|Muhammad Nauman|LINK
i am maintaining a list of users in a chatting application. Is it possible to sent chatter name (that he given while signin) to the global.asax at session_strat or Application_Start. If yes how? Please
also tell some other alternative to do so.
Jun 26, 2011 03:12 AM|princeG|LINK
you can store online user in the Dataset tables
and on userlogin you need to update this Database table.
and call database Table updatation based on Glabol.asax session_Start method.
Once SignIn , udate database based on Session_Start .
On Session_End, remove/update login stataus
Jun 27, 2011 03:07 PM|ozkary|LINK
On the Session_Start handler, you can access the request object to read the username as this:
String username = Context.Request["username"] //replace username with chatter name form element id
If you are using forms authentication, you can also access the user name in the Application_AuthenticateRequest handler. Read the Context.User.Identity
hope it helps.