Website acct creation & login script needed

Posted on 1997-09-12
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
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment

Accepted Solution

Hose earned 50 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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Making a simple AJAX shopping cart Couple years ago I made my first shopping cart, I used iframe and JavaScript, it was very good at that time, there were no sessions or AJAX, I used cookies on clients machine. Today we have more advanced techno…
This article will show, step by step, how to integrate R code into a R Sweave document
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

763 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