ASP Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreASP Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old November 19th, 2003, 01:09 AM
yanivn yanivn is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Posts: 12 yanivn User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question design help required plz ....

Hi
I have crated my admin.asp where i control my Db and make queries and all that.
The question is how do i create my own access to that page on the server ? is there an ASP result ? is it IP based ? or secret code ?
I don't want to put a button on the main page, seems bulky.
I have a C++ background so my logic is sometimes kinda different and i would like a hint.
Thanks a lot.
Yaniv.

Reply With Quote
  #2  
Old November 19th, 2003, 01:20 AM
fused fused is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2003
Posts: 78 fused User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Use a Session or a cookie to control.
In your Users table, you should have a column which states the kind of access a user should have.

Use a char in the column or something. For eg:
1 = Admin rights
2 = Normal Users

Let's say when you log in as admin rights, it should also read that access control column,
If it's "1" (admin level), set a Session("accesslevel")="1".

Then, in your admin pages, include a file and check whether Session("accesslevel")="1". If not, redirect users to another page.

Hope this helps.

Reply With Quote
  #3  
Old November 19th, 2003, 01:28 AM
yanivn yanivn is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Posts: 12 yanivn User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
great, but ....

isn't there a way to mimik that cookie and fake access to my precious admin ?
also, if i want to boast my db in a clients computer, it takes medling.
so ?....

Reply With Quote
  #4  
Old November 19th, 2003, 01:36 AM
yanivn yanivn is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Posts: 12 yanivn User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
HEY ! I DIDN'T EXPLAIN WELL !

Sorry, i'm kinda tired here ....
My website has nothing with logins etc. it's the kind that has a form which data is sent to a db.
so no user session, and no coockies.
i hope this clarify.

Reply With Quote
  #5  
Old November 19th, 2003, 01:42 AM
fused fused is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2003
Posts: 78 fused User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Talking

I see.

I don't quite catch your point this time around.

Perhaps you would like to give a more detailed description of what you wish to do?


Reply With Quote
  #6  
Old November 19th, 2003, 01:50 AM
yanivn yanivn is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Posts: 12 yanivn User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
ok ...

i always try to keep my posts short, i don't want people loosing their patience and dropping on me ...
so, here goes -
the project is a website designed to collect data from people on the web. access to this website is from a link, and login is not required.
the website contains a form, upon submit the data is sent to a data base. located on server ofcourse.
now, when users from www accsess www.mywebsite.com they go to the defalt.asp.
how do i make me an entry to admin.asp, thats my admininistrator actions page. actions on db etc. -
from the main page by a button with password (bulky) ?
or, any other way to cinfirm my ip (i prefer not) or a certain password, but from a different url. how ?...
i hope i'm clear now and thanks for the reply.
yaniv

Reply With Quote
  #7  
Old November 19th, 2003, 01:58 AM
fused fused is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2003
Posts: 78 fused User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Hmm...You want to access admin.asp.

But of course, this page must be invisible to other users.

You want some ways to bring you to admin.asp?

From my knowledge, you need to do a custom login page just for the adminstrator alone.

The path to this login page shouldn't appear anywhere on your site.

It should be a path to the page which only the admin level people knows.



PS: Maybe there are others out there with better suggestions.

Reply With Quote
  #8  
Old November 19th, 2003, 02:29 AM
yanivn yanivn is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Posts: 12 yanivn User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
thank you my friend

i'm sure there is a common way to do this.
i guess it need a bit more digging.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreASP Programming > design help required plz ....


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT