Putting up a Web Site
-
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
-
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
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 !~
-
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 !~
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.
-
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
I think, you had better use PHP and ajax because it helps users to login with ease to your website.