Asp Admin section....

This is a discussion on "Asp Admin section...." within the Classic ASP section. This forum, and the thread "Asp Admin section.... are both part of the Program Your Website category.



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

Notices


Closed Thread
 
LinkBack Thread Tools
  #1 (permalink)  
Old May 18th, 2004, 14:39
Highly Reputable Member
Join Date: Aug 2003
Location: Australia
Posts: 662
Thanks: 0
Thanked 0 Times in 0 Posts
Asp Admin section....

Ok, so I have no idea where to start on creating my own log-in section. So I just stole this off of some other person's site. Then I took that code and edited it a bunch to make it work for me and mine. (of course the admin section inside is all made by me, except a few thigns Dreamweaver threw in thanks to GWX for pointing that out by the way...) I learned the syntax for ASP, but I don't know how to use it. I see how these people did it and I am like ok, I get the coding, but I don't understand the concepts... Is this something only school will teach me? or is there a book I can read?

  #2 (permalink)  
Old May 18th, 2004, 15:10
spinal007's Avatar
Moderator
Join Date: Mar 2004
Location: Good Ol'London
Age: 22
Posts: 1,612
Blog Entries: 1
Thanks: 0
Thanked 2 Times in 2 Posts
Send a message via ICQ to spinal007 Send a message via MSN to spinal007 Send a message via Yahoo to spinal007 Send a message via Skype™ to spinal007
here's what I think is the basic idea behind a simple admin site:

1. store your username-password conbinations somewhere (in a database for example), then try finding a matching record.
so:
find record with username='username' and password='password'

if record exists
[save username and other user info to session. you couldt even save things like access level, login time and other things that might be usefull later on]

else
[bug off, u can't come in]



2. to make sure all your admin pages are secure, you could (and you probably have) design a template for your admin pages in dreamweaver. in that template include an ASP file which says:

if session("username")=Empty then ' i.e. not logged in
[send visitor to login page]



3. build up the code to meet your security needs... for example:
instead of:
if session("username")=Empty
you could use:
if session("username")=Empty or Session("logintime")<(Now()-10)
that way, even if the session hasn't expired, the user will have to login again every 10 minutes
and you could also use a similar method if you wanted to have different access levels...


I've gone on so much that I don't even remeber what I was talking about, so I better go...

on the general issue though:
based on my experience, I have never been taught nor read any books. i learnt from sites like this and newsgroups. I support the "learn it by doing it" theory (which I just made up by the way...)
Last Blog Entry: Random String in Javascript (Apr 21st, 2008)
  #3 (permalink)  
Old May 18th, 2004, 19:48
Most Reputable Member
Join Date: Jul 2003
Posts: 1,856
Thanks: 0
Thanked 0 Times in 0 Posts
See my second post on this thread
http://www.webforumz.com/topic.asp?TOPIC_ID=871

In my opinion there's nothing a school can teach you can't learn on your own.
  #4 (permalink)  
Old May 20th, 2004, 19:40
Highly Reputable Member
Join Date: Aug 2003
Location: Australia
Posts: 662
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks Cata.. I got it to work but had to use Dreamweaver and cheated a little bit... I understand how it did it, but the variables Dreamweaver used is a little strange. lol. But it works now, and it checks to make sure login is true on every page, so you have to log-in to access them. THanks Cata, thanksSpinal.
  #5 (permalink)  
Old May 20th, 2004, 19:46
spinal007's Avatar
Moderator
Join Date: Mar 2004
Location: Good Ol'London
Age: 22
Posts: 1,612
Blog Entries: 1
Thanks: 0
Thanked 2 Times in 2 Posts
Send a message via ICQ to spinal007 Send a message via MSN to spinal007 Send a message via Yahoo to spinal007 Send a message via Skype™ to spinal007
ditch Dreamweaver. it will end up taking you to a dark messy side...
and we all know that messy and programming don't really go together.....

I use I plain text editor with a few search/replace tools and that's it. it's my baby!
I wouldn't change it for anything!
:-)
Last Blog Entry: Random String in Javascript (Apr 21st, 2008)
  #6 (permalink)  
Old May 20th, 2004, 21:37
Highly Reputable Member
Join Date: Aug 2003
Location: Australia
Posts: 662
Thanks: 0
Thanked 0 Times in 0 Posts
well, I do ALL my coding in Araneae. But I do use Dreamweaver for stuff like this.. (things I don't know...) But I mostly stick with Araneae. Araneae (to those that don't know...) is awesome. I love it. It's basically like Dreamweaver in Code View. It color codes different parts and has a line counter, and it loads so very quickly. It is my first choice for programming. But when I get stuff like the above I don't know where to start or what to do. I will eventually, (as I have told Rob) create one from scratch and figure it out completely, then make the changes to all my current sites... but at the moment Webdesign is in such high demand for me that I don't have the time to do it that way. Hopefully when things slow down I will have the time to take and hand code this stuff.
  #7 (permalink)  
Old May 22nd, 2004, 12:39
spinal007's Avatar
Moderator
Join Date: Mar 2004
Location: Good Ol'London
Age: 22
Posts: 1,612
Blog Entries: 1
Thanks: 0
Thanked 2 Times in 2 Posts
Send a message via ICQ to spinal007 Send a message via MSN to spinal007 Send a message via Yahoo to spinal007 Send a message via Skype™ to spinal007
fair enough...
you seem to use Araneae for the same reasons I use MSDE (which is included with MSOffice), so I'm gonna try it out...
Last Blog Entry: Random String in Javascript (Apr 21st, 2008)
Closed Thread

Tags
asp, admin, section

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
Help with Admin section coding of website (Will pay for help) casal52 Job Opportunities 5 Dec 31st, 2007 07:44
Is it just me? Need help from the Admin please... D3niss3 Webforumz Cafe 5 Oct 3rd, 2007 21:48
Trying to design an admin section for fundraising website AdRock Website Planning 3 Sep 17th, 2007 23:07
to the admin geyids Introduce Yourself 3 Mar 18th, 2007 13:08
Admin cbrams9 PHP Forum 1 Aug 29th, 2006 17:43


All times are GMT. The time now is 20:54.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs 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 43