Creating a User's Area....

This is a discussion on "Creating a User's Area...." within the Classic ASP section. This forum, and the thread "Creating a User's Area.... are both part of the Program Your Website category.



 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Program Your Website > Classic ASP

Notices


Closed Thread
 
LinkBack Thread Tools
  #1  
Old Jan 31st, 2004, 22:57
Highly Reputable Member
Join Date: Aug 2003
Location: Australia
Posts: 662
Thanks: 0
Thanked 0 Times in 0 Posts
Creating a User's Area....

Ok, this is my next project. I want to use ASP to create a user log-in. After that I want that to log them in to their own customized user's area. This will be a place where they can select and save color schemes and things like that. My problem is that I don't have a clue as where to start with this and don't know ANY ASP... But.. I need someone to point me in the right direction. Any help would be greatly appreciated. Thanks.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!

  #2  
Old Feb 2nd, 2004, 07:33
Most Reputable Member
Join Date: Jul 2003
Posts: 1,856
Thanks: 0
Thanked 0 Times in 0 Posts
I'd say start here: http://www.w3schools.com/asp/asp_intro.asp

You're going to need to read up on using forms, cookies, and either working with text files or databases.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #3  
Old Feb 2nd, 2004, 08:22
Rob's Avatar
Rob Rob is online now
Webforumz Founder
Join Date: Jul 2003
Location: Southern UK
Age: 34
Posts: 3,153
Blog Entries: 7
Thanks: 26
Thanked 18 Times in 15 Posts
Kulegamr.... If you have not already got an ASP book, then you can easily learn ASP in two weeks with this book:-
http://www.webforumz.com/topic.asp?TOPIC_ID=876
__________________
Click the 'Thanks!' button if this post has helped you

Rob - Webforumz Founder
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #4  
Old Feb 2nd, 2004, 18:35
Highly Reputable Member
Join Date: Aug 2003
Location: Australia
Posts: 662
Thanks: 0
Thanked 0 Times in 0 Posts
Yeah, I saw that book and can't afford the price on it... Well I am looking for it in bookstores, but can't afford over the internet. What happens is my dad sees me ordering online and just about kills me. haha. So I gotta keep this limited to where I can find. I am going to bookstores today to search for it. My campus bookstore actually has a VERY good selection of Web Language books. I was suprized to find so many different varieties of books they offer. Well, thanks for the tips, I am going now.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #5  
Old Feb 3rd, 2004, 00:05
Most Reputable Member
Join Date: Jul 2003
Posts: 1,856
Thanks: 0
Thanked 0 Times in 0 Posts
Here's a general outline of how something like this works.

1) Create a database table to store the login information in. At the least you'll want to store the username and password. You might want to add different levels of user (for example so you can administer the user table) like level 105=normal user, 713=admin, etc. Use random things for the security level so the user can't hack their cookies to get admin status.

2) Create a HTML form that posts to an ASP page, passing the login information via POST

3) The login script checks the database to see if there's a record with the username and password from the form

4) If their login info is good, set a temporary cookie on their browser that says they're logged in (and optionally what their level is) and redirect them to the secure area

5) Create a small script that checks the cookies to see if a user is logged in. If they aren't is should redirect them to the login page. Also check to see if their permission level is ok for the particular page. Use server-side includes to include this script at the beginning of every page in the secure area, then people can't just skip the login if they know the address of the other pages.

6) Create a set of pages to edit/add/delete the login information so you can create users without having to edit the database directly. Secure this page to only admin-level users. Once you build one of this type of table editing page you'll find a million uses for it.

That's the basic idea. Now that you've got a logged in user you can serve up some content that's customized to them or whatever else you like. Of course you can do something fancier once you get it working, like limiting the number of times someone can try logging in/sending password reminder emails, etc.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #6  
Old Feb 3rd, 2004, 02:51
Highly Reputable Member
Join Date: Aug 2003
Location: Australia
Posts: 662
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks Catalyst... this is actually very helpful to me and points me EXACTLY in the right direction. Is there some way we can make a tutorial of this as I get it to work? I just bought an ASP book that teaches me everything from HTML to VBScript to ASP. It also hits how to create basic databases. I bought this after talking to a guy that does ASP programming and he said its the best one you can find without going on the internet... Well, I am going to start learning and will post back once I get stuck... Thanks.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #7  
Old Feb 5th, 2004, 13:33
Reputable Member
Join Date: Sep 2003
Location: USA
Posts: 112
Thanks: 0
Thanked 0 Times in 0 Posts
http://www.4guysfromrolla.com/

4GuysFromRolla is also a great place for ASP information. Although their search engine isn't the greatest. I use the "Just Search 4 Guys" because then they use Google.

jakyra
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #8  
Old Feb 5th, 2004, 17:04
Highly Reputable Member
Join Date: Aug 2003
Location: Australia
Posts: 662
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks... I got an ASP book That is teaching me ALL of it.. It is very detailed and gives a 2 page walk-through for everything you learn. It's really cool. What's even better is that with this book I am actually learning it where I can already create my own code without any of the book's help. It's fairly nice. The Book is Active Server Pages 3.0: Your Visual Blue Prints for developing interactive Web sites .
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Closed Thread

Tags
creating, users, area

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating a members area FreeGateway Starting Out 4 Oct 30th, 2007 06:50
Creating a client area scottishmartin PHP Forum 17 Jan 2nd, 2007 21:43
How can I know the user's resolution QuikFrozen JavaScript Forum 5 Aug 9th, 2006 15:03
Page Area robukni JavaScript Forum 3 Feb 5th, 2006 17:17


All times are GMT. The time now is 14:32.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42