Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Single Logon

Single Logon

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netsysadminwindows-adminquestion
5 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Michael P Butler
    wrote on last edited by
    #1

    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

    M S S 3 Replies Last reply
    0
    • M Michael P Butler

      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

      M Offline
      M Offline
      Masaaki Onishi
      wrote on last edited by
      #2

      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

      M 1 Reply Last reply
      0
      • M Michael P Butler

        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

        S Offline
        S Offline
        Steven Hicks n 1
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        • M Masaaki Onishi

          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

          M Offline
          M Offline
          Masaaki Onishi
          wrote on last edited by
          #4

          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

          1 Reply Last reply
          0
          • M Michael P Butler

            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

            S Offline
            S Offline
            stephen woolhead
            wrote on last edited by
            #5

            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.

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups