Need To Discuss Ideas On Creating A Members Area - A Discussion

free web hosting
Free Web Hosting > Computers & Tech > Programming > Scripting > Perl & CGI

Need To Discuss Ideas On Creating A Members Area - A Discussion

saga
Hi peeps....
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..

the whole idea is to have some pages in the website that only members of the site can access it. To implement this I am planning to use cookies and CGI - perl.
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.

Implenting this is not hard for me since i have suffecient knowledge in Perl and CGI and also in Javascript.

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.

Thank You.

 

 

 


Reply

szupie
Hmm, do you know PHP? Or do you have a special reason for using CGI instead? I want to know these things before I say anything else.

Reply

saga
QUOTE(szupie @ Aug 2 2005, 10:15 PM)
Hmm, do you know PHP?
*



honestly dont know anything about PHP although my friends said its good but i havent find a time yet to learn the language or should I say script. The only reason I use CGI becuase its the only think I know on how to process forms.
Should I then learn PHP?

Reply

vizskywalker
Wow, basically my qusetion from three years ago. When I was at tripod.com for hosting (which in no way compares to astahost), they only allowed cgi to be done via perl, and that was the only cgi they would allow. PHP scripts were also not allowed. As to your question, yes, this method works exceptionally well. Using cookies ha the added benefit that users may not have to resign in every time they want to access the page. Another way, and I'm not going to sya either is better, is to use php sessions, which I believe are more temporary than cookies. PHP also has cookie capability, but I think your method lends itself well to perl, and you shouldn't learn php just for that, although php is an excellent language.

A word of advice: don't use the cgi.pm module to set and check cookies. It is overly clunky and cookies are easy enough to deal with anyway. If you have any cookie questions in perl, I can answer them easily, and I even have a login perl page that I can let you look at.

~Viz

Reply

SunBlind
I think you should seriously look into learning PHP. Not only is it pretty easy to learn, in my own opinion, I think it's more functional and versatile than CGI. Not to mention the fact that PHP and MySQL are a great couple (and when you're making a members area, those databases are a dream... most of this time) I'm actually in the process of making an advanced My Space-like members area myself, and I couldn't imagine doing it in CGI but I could see how it would work for you, given the simplicity of what you're going after. Anywhos, I'm not the brightest bulb on the Christmas tree, but I think you should check out PHP.

Best of Luck!

Reply

szupie
Sorry, haven't checked the forum for a few days... I know PHP, but not Perl, so I don't know if cgi's enough. vizskywalker would know your situation more than me, since he knows cgi. PHP has enough functions for me to use in a members system.

Reply

vizskywalker
Both PHP and CGI (when done in perl) have enough functionality for a simple members page where the members data is kept in a .txt style file. If you want to use a database such as MySQL, then it becomes a lot easier to use PHP, however, for some other databases, it is still just as easy in perl. Whic you use is entirely up to you, I've done both.

~Viz

Reply

unimatrix
PHP frankly has become the preferred method of dealing with the type of site you are thinking about making. Sessions are also a better idea than cookies. The exact technical reasons I think really have to do with the perception that cookies are "evil" due to some of their uses in tracking users. If your going to be using MySQL, the PHP is the best option.

If you are going to be dealing with text-based system, PERL is the way to go.

Recently I've gone back to perl for a project. Sad thing is I used to know PERL extremely well when it was really the only way of creating dynamic sites on the web back in 1995/1996. Installed a number of simple PERL shopping carts back in the days when I used to do more web programming.

The main reason why I am using PERL is because the form is on a webserver hosted by our ISP and it needs to pass back information to a server on our internal network. PERL is executed server side so that makes the most sense.


Reply

saga
Thanks guys. I just bought a book about PHP and I bought a cd too full of online books about webdeveloping and some other programming stuffs.

Actualy I am starting my design already and I have decided to use PHP after 3 days of reading the whole book smile.gif PHP is not security risk unlike CGI-PERL which could wreck havoc on the server machine. And besides PHP has a wonderful support on MySQL. I hate creating my own database smile.gif too much work, accessing files, retrieving and parsing data.

Anyway, thanks guys. By the way I prefer the session method in PHP in creating a members area since it can work even if cookies are off in the client browser.

Afteri finnished my site, I need you guys to evaluate my
work smile.gif

 

 

 


Reply


Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.
Confirm Code:

Similar Topics

Keywords : discuss, ideas, creating, members, area, discussion

  1. How To: Display A Members/user List.
    With PHP, Mysql, and HTML. (2)
  2. Creating A Php Login Script
    A thorough look at the process behind it (3)
    Hey all, after reading through a fair number of tutorials on this subject I decided to write a
    pretty detailed one myself. Apologies for those who don't like my structured layout, it's
    just the way I do things. /wink.gif" style="vertical-align:middle" emoid=";)" border="0"
    alt="wink.gif" /> Title: Creating a PHP Login Script Objective: To go through a series of basic
    steps required to create a method of user registration, login and permission management using PHP
    and MySQL. Notes: The information is designed to work fully on AstaHost's hosting plans. ....
  3. Muds
    Discussion of Muds (1)
    Hello all, I am curious as to how many people still actively play a mud or even know what they are.
    Is it a dieing breed of game? Opinions all!?....
  4. 3d Game Creating Thing
    (1)
    I saw a lot of FPS Game creating software topics in the FPS thread. But what I want is a 3rd person
    game making software. What I want to make is something like Prince of Persia or some medieval game.
    It must not be first person. I want it to be 3rd person. I couldn't find a good 3rd person game
    creator. I did see some softwares in many websites but I don't know whether they are good. I
    tried Game Maker Pro 7, but you can only make crappy doom 1 style games from it. I want some thing
    with much more flexibility where you can work in an 3d environment and apply sha....
  5. Creating Links With Quotes (")
    (2)
    While my site's more PHP based than straight HTML, the problem I'm having is with trying to
    do the following: CODE <a href="page.php?variable=foo "bar" foo">foo
    "bar" foo</a> Assuming I have a variable set to foo "bar" foo which I want as
    both the destination of the link to contain and the actual link itself to look like, how can I make
    it show as such? Currently, the first quote (just before the first bar ) is closing the href
    element (I believe that's the right word, yes?), meaning the link instead points t....
  6. N-game
    Discuss the N-Game (2)
    N-Game is a very fun, simple game that has loads of missions. And best of all its free. In N-Game
    you can make levels, then play them or share them world wide, and its only something like 2mb!
    Download links are below: Windows: http://www.harveycartel.org/metanet/n_v1pc.zip Mac:
    http://www.harveycartel.org/metanet/n_v1mac.dmg.zip Linux:
    http://www.harveycartel.org/metanet/n_v1linux.tar.gz ....
  7. Creating Bootable Cds
    (1)
    QUOTE There are many applications for bootable CD-ROMs (we'll call them BCDs) - the most
    common being when undertaking large roll-outs and when using test rigs, where it is often useful to
    combine operating systems with boot and diagnostic diskettes to automate the process of setting up
    machines. If you need to repeatedly test from clean installations it can save lots of time if you
    image a disk drive and put the image, along with the imaging software, on a BCD. It can also be a
    timesaver to have frequently used boot and diagnostic diskettes on CD, and it's....
  8. Help Me Creating My Text Based Game.
    i need help maybe you can help me?! (2)
    Hello, I am totally new to text based games. And i really really whant to make a text based game. I
    have never made text based games and i dont now what software i need and what website's can help
    me make such a game. Can somebody please help me. I already have a idea. Maybe a little bit dificult
    to tell what it is but is like Ogame. (www.ogame.org) Its also in space and it also takes much time
    to do things. But all the other things are not the same. Can somebody please tell me where i can
    find things that can help me make a textbased game. And tell me what software ....
  9. Creating Your First Application
    (1)
    QUOTE In this section, we are not going into the technical aspects of VB programming; just have
    a feel of it. Now, you can try out the examples below: Example 2.1.1 is a simple program. First of
    all, you have to launch Microsoft Visual Basic. Normally, a default form Form1 will be available for
    you to start your new project. Now, double click on form1, the source code window for form1 as shown
    in figure 2.1 will appear. The top of the source code window consists of a list of objects and their
    associated events or procedures. In figure 2.1, the object displayed is F....
  10. Replicator Technology
    Ideas and questions...Would a how to on CNC equipment be used here? (0)
    Hello, The topic here is the building of self replicating (and manufacturing) equipment. Firstly I
    would like to know if a How-To would be used or wanted on building and using such equipment?
    Secondly I would like to discuss the pros and cons of this equipment i.e. impact on environment,
    economy and so forth. I personally love this sort of technology and have build several machines
    from scratch. Also if you have used a CNC based machine what software did you use for it. Please
    include all of it too from cad and cam to actual G-code interpretor. I personally have used....
  11. Creating Interactive Pdf Documents
    (2)
    Is there any freeware I can use to create interactive PDF documents like the one linked to below, or
    can it only be done using Adobe Acrobat, the full edition? The effects I need are the translucent
    hint box in the upper left hand corner, clicking a number to set a checkmark on top of it, and the
    reset button at the end of the first page. http://forms.cgaux.org/archive/a7060f.pdf ....
  12. What If..... Was Invented In 2008
    contribute your ideas (23)
    I just started this topic for all you what-if'er(s) out there. I guess you can type down what
    you would like if you had a what-if technology or invention. Would it a vehicle that runs on
    information. Some cool multi-function artificial intelligent pda, virtual Internet made up of 3d
    halographics, some wonder tonic with healing effects. I'm not sure what you would like, I'm
    just greasing the wheels here. Of course I would like to see all thoughs prototype/concept vehicles
    come to reality. An a merger of Video console machines with office productivity capabili....
  13. Timeshift Discussion
    Story and Time Travel (SPOILERS) (2)
    *ENDING and STORY SPOILERS* The ending felt like an episode of Quantum Leap. Your character makes
    all things right, and is forced into another time jump. Lame.... Let's talk about the use of
    Time Travel in this game, since I'm a nerd about time travel. Ok, so in the beginning of the
    game, Krone sets a bomb and goes back in time to create a new reality. You see the bomb go off, and
    follow him into the alternate reality. You essentially take down his entire army and kill Krone.
    With Krone's suit, you somehow jump back to your original reality several secon....
  14. Best Software For Creating Games
    (9)
    I want to know which software is the best to make world maps and characters for games. Should I use
    3ds max or Maya or something else. Please advice....
  15. Help Creating A Browser-based Rpg
    (5)
    I have played games like www.the-lost-realm.com and www.torncity.com and I have always wanted to
    make my own. I have some programming experience in Java and Perl, but I'm looking to make this
    game in PHP. It would be nice if someone could add me on MSN at joli334@yahoo.com and help me get
    started. I just want to start out with something simple and work my way up. I know not to shoot for
    the stars right away. Any help from anyone would be greatly appreciated, thanks.....
  16. Creating Flash Image/slideshow
    (2)
    Hi, is there any simple way to create a Flash (or any animated) movie/slideshow similar to this one
    ? I want to have a similar effect on one of the myspace accounts I'm helping a user create. I
    want to avoid using Adobe Flash if a website or some free program can do this job for me. Thanks.....
  17. C++: Basic Classes
    classes, objects, access labels, members, inline functions (5)
    This tutorial assumes that you have a basic knowledge of C++. You know how to use built-in types,
    like ints, doubles, chars, etc. You should know some types that are part of the STL, like vector,
    etc. Those types that come in the STL are just C++; you can create your own types just like
    those! Non built-in types are referred to as classes . To create a class, you just use the
    keyword class , the name of the class, and curly brackets. CODE //A class named MyClass class
    MyClass { }; In fact, that is all we need to create variables, pointers, or references ....
  18. Garry's Mod 10
    Discuss about Garry's Mod 10 and a short review! (2)
    New Garry's Mod. New life. Scroll down to read more! QUOTE " Garry’s Mod, the
    Source-powered physics sandbox famed across the games industry, is to be sold over Steam for
    $10 US, with profits split 50/50 between Garry and his team of contributors and Valve. What is
    currently known as version 9.1 will lose its number and become the initial paid release, while the
    current version (9.04) will remain as a free demo. All updates will be free. The sanctioned selling
    of full, third-party mods is new territory for the games industry, and with no sign of Bl....
  19. Creating New Process Under Alternate Credentials (createprocessasuser)
    (6)
    I am having quite the time spawning a process under a different user context. My preferred method
    involves using the Windows API functions LogonUser() and CreateProcessAsUser() but I have not
    figured out a way to overcome several error messages. I also have the particular problem of running
    my program from the system account which I have found affects the behavior of CreateProcessAsUserW.
    Added to this toxic mix are several bugs scattered throughout the Windows API and .NET framework.
    After numerous attempts and about two weeks of frustrations I am open to suggestion....
  20. Creating Executable Jar Files
    (9)
    Dear Friends Today I will show you how to create an executable jar file. I do not know whether this
    topic is introduced by any other member. Using this method one can build graphical user interface
    program with java which will behave similar to Executable files i.e., the program can be started
    with double clicks. It is an easy alternative. Otherwise to run a java program one has to run it
    through comand prompt(in windows) using java command or by creating java executalbes which are very
    difficult to make. So lets begin: Frist of all, we will....
  21. Add A Forum To Your Site
    A guide to adding discussion forums to your site (20)
    QUOTE When you’re setting up a site using CSS, it’s a good idea to do a little planning ahead
    and think how you’ll be using your styles, otherwise you could end up spending much more time later.
    As a case in point – for a site I’ve recently built, a basic style sheet was put together, with
    entries for matters like headlines, section headings, item headings and so on. When it came to forms
    on the site that needed headings next to the data entry boxes, the logical choice was the item
    headings style. It helped maintain a consistent look across the site, but it came bac....
  22. Ideas For Using VB To Program Nokia S60 Phones
    (8)
    To be pretty frank with all you guys, i've just started getting into VB, lets say a month now in
    university with programs like calculate the Discount on prices u enter or make a simple calculator
    that takes in 2 values etc. I have been a fan of the Nokia S60 phones, and have quiet a knowledge
    about them, but unless i get into the background i cant do anything usefull of my knowledge, hence
    started to learn programming in VB for S60 phones. I visited the nokia developers site and found
    out a VB add-on (duno whatelse to call it) , but mostly came up with the knowledge....
  23. Creating Your Own Simple But Effective Site
    To be resumed soon (26)
    Creating your own UKISS site from beginning to end Contents So that you know
    what is happening and when I’ve compiled this contents section. It will also help you got to
    the parts that you need without scrawling through everything. Introduction Design Step 1
    – Starting Fireworks and creating your canvas Step 2 – Making a base on which to work
    on Step 3 – Head’s up; start with the logo Step 4 – Finding your way;
    creating a menu Step 5 – Eyes to the centre; work on the main column Step 6....
  24. Creating Irc Chat Room...
    (9)
    Hi, I know that IRC is not for newbies, but we all have to start somewhere right? Well, I read and
    read...and read even more. But I still have questions on my mind before I dive into the IRC world.
    I have used IRC Chat before, but don't call myself a regular user /wink.gif' border='0'
    style='vertical-align:middle' alt='wink.gif' /> I was never a OP before so this is a first... If
    anyone can answer these questions to get me started, that would be great /smile.gif' border='0'
    style='vertical-align:middle' alt='smile.gif' /> I apologize for the bunch of q....
  25. Permission Denied In Creating A Directory
    mkdir() (6)
    QUOTE Warning: mkdir(/home/whistle/public_html/see/seeto): Permission denied in
    /home/whistle/public_html/see/config.php on line 56 My web hosting is on the astahost. The
    absolute path of my php script is "(/home/whistle/public_html/see". When I try to create a directory
    named "seeto", the error message about permission denied is displayed. The same script I tried on
    another web hosting server "Lycos", it works perfectly. Can anyone tell me what is wrong with it?
    Or anything I should notice more? Thanks. CODE <?php if (mkdir("/home/whistle/p....
  26. Tattoos
    Opinions and Ideas (16)
    Ill say that before I get slated, I wasnt sure which forum to post this in, and healthcare to me
    seemed most logical as tattoos are body mod and a way of altering your image to make yourself
    happier. I just wanted to know if anyone here has any tattoos? I have the following and I
    personally really enjoy my tattoos, most people take a disliking for the barcode and frankly im
    tired of people asking if ive scanned myself in, I got it because its not something you see
    everyday, im not all 'society has us under control so ill barcode myself' free radical kin....
  27. How Do I Create And Write To Files?
    creating, writing, deleting files (4)
    Hi, Can someone please tell me how to create files and write to them in PHP. I just want to create
    a simple file containing text, and then be able to read it or update it. Thanks Alfie....
  28. Creating You Own Game In RPG Maker 2000/2003
    Part 2 - Map Designing (12)
    Map Designing is a very important part in your RPG game. The maps are made up with many different
    graphics, which we call Chipsets. You can import your own Chipsets in the Database. Check out the
    other tutorial to find out how to. Once you are at the map design, you will have all ocean. If you
    look to the left, you'll see graphics you can choose from. You need to put thoses graphics from
    the left to make a game on the right. First, we need to set the graphics, or Chipsets. Right-click
    on the MAP0001 folder under the graphics box to the left and choose Map Propertie....
  29. Creating A Game In Rpg Maker 2000/2003
    Part 1 - New Game and the Database (18)
    Creating a game in RPG Maker 2000/2003 Part 1 (I AM ONLY GOING TO TEACH YOU HOW TO MAKE AN
    RPG GAME IN THIS TUTORIAL!) First of all, you need to find some resources. When I say
    resources, I mean Character Sets, Chip Sets, Music, Backdrops, and Enemies. (Also others) The
    perfect place to find thoses would be at one of these great websites: www.gamingw.net
    www.phylomortis.com But, before you save them, you need to create a new game. Once you click on
    "New Project", this screen will pop up. The Directory Name is simply the name of the folder that
    it will....
  30. Final Fantasy X
    Discussion - Warn if spoilers! (15)
    Hey everyone, I just thought I'd start a discussion on Final Fantasy X, one of the most
    beautiful in the entire series of FF games. What do you think of it? Do you like the characters?
    Personally, I find all the characters well rounded and original, and love the game. I haven't
    beaten it yet (though I'm pretty close) so NO SPOILERS unless you give a warning at the
    beginning of you post! /biggrin.gif' border='0' style='vertical-align:middle'
    alt='biggrin.gif' /> -Kyle....

    1. Looking for discuss, ideas, creating, members, area, discussion

Searching Video's for discuss, ideas, creating, members, area, discussion
Similar
How To:
Display A
Members/user
List. - With
PHP, Mysql,
and HTML.
Creating A
Php Login
Script - A
thorough
look at the
process
behind it
Muds -
Discussion
of Muds
3d Game
Creating
Thing
Creating
Links With
Quotes
(")
N-game -
Discuss the
N-Game
Creating
Bootable Cds
Help Me
Creating My
Text Based
Game. - i
need help
maybe you
can help
me?!
Creating
Your First
Application
Replicator
Technology -
Ideas and
questions...
Would a how
to on CNC
equipment be
used here?
Creating
Interactive
Pdf
Documents
What If.....
Was Invented
In 2008 -
contribute
your ideas
Timeshift
Discussion -
Story and
Time Travel
(SPOILERS)
Best
Software For
Creating
Games
Help
Creating A
Browser-base
d Rpg
Creating
Flash
Image/slides
how
C++: Basic
Classes -
classes,
objects,
access
labels,
members,
inline
functions
Garry's
Mod 10 -
Discuss
about
Garry's
Mod 10 and a
short
review!
Creating New
Process
Under
Alternate
Credentials
(createproce
ssasuser)
Creating
Executable
Jar Files
Add A Forum
To Your Site
- A guide to
adding
discussion
forums to
your site
Ideas For
Using VB To
Program
Nokia S60
Phones
Creating
Your Own
Simple But
Effective
Site - To be
resumed soon
Creating Irc
Chat Room...
Permission
Denied In
Creating A
Directory -
mkdir()
Tattoos -
Opinions and
Ideas
How Do I
Create And
Write To
Files? -
creating,
writing,
deleting
files
Creating You
Own Game In
RPG Maker
2000/2003 -
Part 2 - Map
Designing
Creating A
Game In Rpg
Maker
2000/2003 -
Part 1 - New
Game and the
Database
Final
Fantasy X -
Discussion -
Warn if
spoilers!
;
advertisement




Need To Discuss Ideas On Creating A Members Area - A Discussion



 

 

 

 

ADD REPLY / Got an Opinion! a humble request :-) RAPID SEARCH! Free Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE