Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win


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
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 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

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

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

This tutorial will discuss the log-in process using WhizBase. In this article I assume you already know HTML. I will write the code using WhizBase Server Pages, so you need to know some basics in WBSP (you might look at some of my other articles abo…
It is a general practice to get rid of old user profiles on a computer  in a LAN environment. As I have been working with a company in a LAN environment where users move from one place to some other place at times. This will make many user profil…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
Suggested Courses

610 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