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. Putting up a Web Site

Putting up a Web Site

Scheduled Pinned Locked Moved Web Development
c++htmlapachesysadmintutorial
4 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.
  • B Offline
    B Offline
    BobInNJ
    wrote on last edited by
    #1

    My friend and I are currently working on putting up a website. We are doing this using HTML, CGI scripts written in C++ and the Apache Web Server. We are both highly experienced programmers, however, we are relatively new to web development. We want to require user's to login in. We are wondering how user login's are normal handled. Should we be using the login feature of Apache? Should we being doing this by using cookies. Maybe you could point me to a tutorial on the web related to this subject. Thanks Bob

    A A 2 Replies Last reply
    0
    • B BobInNJ

      My friend and I are currently working on putting up a website. We are doing this using HTML, CGI scripts written in C++ and the Apache Web Server. We are both highly experienced programmers, however, we are relatively new to web development. We want to require user's to login in. We are wondering how user login's are normal handled. Should we be using the login feature of Apache? Should we being doing this by using cookies. Maybe you could point me to a tutorial on the web related to this subject. Thanks Bob

      A Offline
      A Offline
      Afzaal Ahmad Zeeshan
      wrote on last edited by
      #2

      Users logins are handled using cookies, you set up a cookie for every user, which is shared with server to tell the user which user is logged in. Specifically the UserID is stored in that cookie. Then server uses the UserID to show him the response and results, based on that UserID. This way, you can login the users. You can use any service to login the users, or you can also write your own login system. It is not that hard as much you are thinking it would be. :) You can read this article of mine to learn more, Using Files to create a Login System[^]. It is ASP.NET-oriented, I am not sure if that would be of your use. But you can get an idea of how to write the code to accomplish the task.

      The shit I complain about It's like there ain't a cloud in the sky and it's raining out - Eminem ~! Firewall !~

      F 1 Reply Last reply
      0
      • A Afzaal Ahmad Zeeshan

        Users logins are handled using cookies, you set up a cookie for every user, which is shared with server to tell the user which user is logged in. Specifically the UserID is stored in that cookie. Then server uses the UserID to show him the response and results, based on that UserID. This way, you can login the users. You can use any service to login the users, or you can also write your own login system. It is not that hard as much you are thinking it would be. :) You can read this article of mine to learn more, Using Files to create a Login System[^]. It is ASP.NET-oriented, I am not sure if that would be of your use. But you can get an idea of how to write the code to accomplish the task.

        The shit I complain about It's like there ain't a cloud in the sky and it's raining out - Eminem ~! Firewall !~

        F Offline
        F Offline
        F ES Sitecore
        wrote on last edited by
        #3

        Just remember that users can alter cookies so storing a userid in the cookie as the only mechanism for authentication is probably not secure enough. The value needs to be encoded in a way that the user can't alter or "guess" a correct value.

        1 Reply Last reply
        0
        • B BobInNJ

          My friend and I are currently working on putting up a website. We are doing this using HTML, CGI scripts written in C++ and the Apache Web Server. We are both highly experienced programmers, however, we are relatively new to web development. We want to require user's to login in. We are wondering how user login's are normal handled. Should we be using the login feature of Apache? Should we being doing this by using cookies. Maybe you could point me to a tutorial on the web related to this subject. Thanks Bob

          A Offline
          A Offline
          AndrewDiaz
          wrote on last edited by
          #4

          I think, you had better use PHP and ajax because it helps users to login with ease to your website.

          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