?
Solved

Website acct creation & login script needed

Posted on 1997-09-12
1
Medium Priority
?
231 Views
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!!!!!
Tony
Williston, VT
0
Comment
Question by:boatful
[X]
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
 
LVL 1

Accepted Solution

by:
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.  :)
0

Featured Post

Setting up LaraDock for Laravel

Learn how to set up LaraDock in a Laravel project - LaraDock gives us an easy way to run a Laravel application using Docker in a single command.

Question has a verified solution.

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

If you get a (Blue Screen of Death), your system writes a small file called a minidump. Your first step is to make certain your computer is setup to record memory dumps. Right click My Computer, choose properties. Click on the advanced tab, an…
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.
Learn the basics of strings in Python: declaration, operations, indices, and slicing. Strings are declared with quotations; for example: s = "string": Strings are immutable.: Strings may be concatenated or multiplied using the addition and multiplic…
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

800 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