Single Logon
-
Coming from a windows desktop background, if I want to identify the currently logged on user I just make a call to GetUserName. This saves me the job of having to write my own logon routines. Moving onto a web-based platform, ASP/ASP.NET. What is the best way to achieve the same. I basically want the user to log into Win2k as normal, go to my intranet home page and the server will know who they are without having to go through a second logon process. All this will be running on a Wink2 desktop and a Wink2 server running IIS. Michael 'War is at best barbarism...Its glory is all moonshine. It is only those who have neither fired a shot nor heard the shrieks and groans of the wounded who cry aloud for blood, more vengeance, more desolation. War is hell.' - General William Sherman, 1879
-
Coming from a windows desktop background, if I want to identify the currently logged on user I just make a call to GetUserName. This saves me the job of having to write my own logon routines. Moving onto a web-based platform, ASP/ASP.NET. What is the best way to achieve the same. I basically want the user to log into Win2k as normal, go to my intranet home page and the server will know who they are without having to go through a second logon process. All this will be running on a Wink2 desktop and a Wink2 server running IIS. Michael 'War is at best barbarism...Its glory is all moonshine. It is only those who have neither fired a shot nor heard the shrieks and groans of the wounded who cry aloud for blood, more vengeance, more desolation. War is hell.' - General William Sherman, 1879
Hello, the CPians around the world.;) We are sometime confused that ASP.NET server control deals with the client behavior. If we want to do something about the client machine through the web browser, we need some client scripts like VBScript, Javascript or ActiveX compoment. But, VBscript and ActiveX will be supported by only IE. I believe that VBScript will give you some hint. HTH. -Masaaki Onishi (eCoolSoft)- ASP.NET Web and Windows Application Development by C# and MFC. eCoolWebPanelBar(BETA) is availabe now. http://www.ecoolsoft.com
-
Coming from a windows desktop background, if I want to identify the currently logged on user I just make a call to GetUserName. This saves me the job of having to write my own logon routines. Moving onto a web-based platform, ASP/ASP.NET. What is the best way to achieve the same. I basically want the user to log into Win2k as normal, go to my intranet home page and the server will know who they are without having to go through a second logon process. All this will be running on a Wink2 desktop and a Wink2 server running IIS. Michael 'War is at best barbarism...Its glory is all moonshine. It is only those who have neither fired a shot nor heard the shrieks and groans of the wounded who cry aloud for blood, more vengeance, more desolation. War is hell.' - General William Sherman, 1879
Use forms authentication and see http://www.ltpb.8m.com/tutorial/SessionManagement.html[^]. -Steven
CPA
CodeProjectAddict
By reading this message you are held fully responsible for any of the mispelln's or grammer, issues, found on, codeproject.com.
For those who were wondering, actual (Linux) Penguins were harmed in creating this message.
Visit Ltpb.8m.com
404Browser (Efficient, Fast, Secure Web Browser): 404Browser.com -
Hello, the CPians around the world.;) We are sometime confused that ASP.NET server control deals with the client behavior. If we want to do something about the client machine through the web browser, we need some client scripts like VBScript, Javascript or ActiveX compoment. But, VBscript and ActiveX will be supported by only IE. I believe that VBScript will give you some hint. HTH. -Masaaki Onishi (eCoolSoft)- ASP.NET Web and Windows Application Development by C# and MFC. eCoolWebPanelBar(BETA) is availabe now. http://www.ecoolsoft.com
Hello, the CPians around the world.;) It seems that I misunderstand the question. I guess that he wants to use GetUserName capability in ASP.NET. X| That is, something like that if the user logins Administrator previledge to WinNTx, the web site shows up.:~ Anyway, the userid and password come from the database. This is the normal authrization way in the web. -Masaaki Onishi (eCoolSoft)- ASP.NET Web and Windows Application Development by C# and MFC. eCoolWebPanelBar(BETA) is availabe now. http://www.ecoolsoft.com
-
Coming from a windows desktop background, if I want to identify the currently logged on user I just make a call to GetUserName. This saves me the job of having to write my own logon routines. Moving onto a web-based platform, ASP/ASP.NET. What is the best way to achieve the same. I basically want the user to log into Win2k as normal, go to my intranet home page and the server will know who they are without having to go through a second logon process. All this will be running on a Wink2 desktop and a Wink2 server running IIS. Michael 'War is at best barbarism...Its glory is all moonshine. It is only those who have neither fired a shot nor heard the shrieks and groans of the wounded who cry aloud for blood, more vengeance, more desolation. War is hell.' - General William Sherman, 1879
Just enable Windows Intergrated Authententication on the IIS web server and windows authentication in the ASP.NET app's web.config, then you can use WindowsPriciple.GetCurrent () to get the current users info. Stephen.