This is more likely a discussion not a tutorial. Its my idea of creating a members area in a website using the CGI - Perl and cookies. I am sharing this so that people out there who have more knowledge about this technique will be able to share their idead about this and they might be able to correct errors or maybe offer an alternative design or approach in solving the problem.
Anyway... so here it is..
Every pages that is for members only will query or look into the cookies available for the page. The cookie will tell the broswer whether to display the member page or redirect to another url.
But of course before this happens there must be a page with a form where user will type there member name and password. Then whatever the user typed is sent to a cgi program that test whether the password and user name is valid. If it is valid then it will send a cookie (like for example access=member) to the browser, if it is not then it would tell the user that he/she may have typed the wrong password or user name or something like that.
So here is my question to those who are expert on this thing.. does this kind of design works for me?
Although the site will contain members area page only but there is no very important data into it. It is a site for online gaming where members are the guild members. So I realy dont need serious security. I believe hackers out there can hack the site. But I think they have a little or no interest at all to the site for its content are not valuable to them.
I hope to those experts out there will share some of their ideas about this approach and they might be able to give an alternative way in creating a members area pages in a website.
Edited by microscopic^earthling, 02 August 2005 - 11:03 AM.