|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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. ![]() |
|
#2
|
|||
|
|||
|
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. |
|
#3
|
|||
|
|||
|
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 ?.... |
|
#4
|
|||
|
|||
|
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. |
|
#5
|
|||
|
|||
|
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? ![]() |
|
#6
|
|||
|
|||
|
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 |
|
#7
|
|||
|
|||
|
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. |
|
#8
|
|||
|
|||
|
thank you my friend
i'm sure there is a common way to do this.
i guess it need a bit more digging. |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ASP Programming > design help required plz .... |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|