Website acct creation & login script needed

Posted on 1997-09-12
Medium Priority
Last Modified: 2013-12-25
I have a new javascript enabled interactive website.  Its contents work equally well (in fact, faster) when run locally, and would be marketable to others in my profession (Physical Therapy) on floppy disc.  I'd like to set up a CGI script for website users account creation and login, using the 'captured' client ID (much like the Experts Exchange algorhythm).  The only difference is each client account would have an expiration date, making it a 'shareware' website, if you follow me.  At the end of 60 days (or whatever), the site would become inaccessible to folks using the particular workstation, (hopefully) spurring them to buy my program.  I need to know:
1) Is this theoretically possible using a CGI BIN??
2) Does each stand alone client have an individual internet ID??
3) Does each workstation within an intranet have an individual ID??
4) If 'yes' to questions 1-3, can you recommend a handbook or other resources to help me get started (I have NO perl etc. experience).
Thanks very much.  Experts Exchange is TOPS!!!!!
Williston, VT
Question by:boatful
1 Comment

Accepted Solution

Hose earned 200 total points
ID: 1830283
Here's some answers for you:

1) It's very possible to do what you're suggesting.  Some ways are easier to explain, so I'll use the basics.  One easy way is to use a login CGI to have users enter their name and password.  If it matches one of the ID's and passwords that is in a list of approved ID's (which you have another program clean every day for people whose account has "expired") then the REMOTE_ADDR is written to a separate file which gives them a "ticket" for a certain length of time.  A user's REMOTE_ADDR can be an IP number or a domain name, but it won't change as long as a user stays at the same machine with a constant connection.  Then, as the user navigates inside your site their REMOTE_ADDR is checked against the ticket list to make sure that they can get the requested page and that enough time hasn't expired so that they have to login again.  It sounds like a lot of work, but unless you plan on having tens of thousands of users, it can be done very quickly.

2) Each computer will have its own ID, the REMOTE_ADDR on the Web server will be passed this ID every time an HTTP request is made.  So this ID will remain constant as long as a connection is constant or they have a static name/IP.  Most people using a dial-up ISP will have dynamic naming, and will rarely have the same name/IP address twice.  So by using a login method you can have dynamic name/IP users have the same access as static name/IP users.  You also won't have to worry about people using a registered user's machine and, just because they're sitting at a computer that is registered, they have access to your site.

3) Each user will definitely have their own ID, but whether or not it stays the same depends on their connections.  Some intranets will set static name/IP addresses, some will use dynamic names.  It all depends on the system.

4) Since you're talking about creating a system to make your site "shareware," I'm imagining that you'll probably have ideas on how to improve this system later.  My advice is to go pick up "Learning Perl" (the Camel Book) from O'Reilly and go through the chapters, doing the exercises.  Once you've done that (might take you a week or two, depending on your rate) you can check out various Perl sites around the Web how to create CGI interfaces to your Perl programs.  Not only will you find Perl to be an incredibly powerful aid in creating your programs, but you'll find a large number of Perl-Web programmers around willing to help you in your projects.  And you'll find a ton of resources on the Web to help you along.

Good luck, and have fun.  :)

Featured Post

[Webinar On Demand] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
Learn the basics of if, else, and elif statements in Python 2.7. Use "if" statements to test a specified condition.: The structure of an if statement is as follows: (CODE) Use "else" statements to allow the execution of an alternative, if the …
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
Suggested Courses

616 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question