Web Hosting Forum | Lunarpages


*
Welcome, Guest. Please login or register.
Did you miss your activation email?



Login with username, password and session length
May 24, 2012, 09:36:07 AM

Pages: [1]   Go Down
  Print  
Author Topic: protecting a member area  (Read 478 times)
drew69
Spacescooter Operator
*****
Offline Offline

Posts: 45


« on: April 12, 2003, 08:50:42 AM »

I am very new at programming and am trying to set up a member area that is protected.  I am currently using Webprotect on the CPanel to protect my member folder and everying under it.  Also I have generated ASP code to check passwords.  Everything works great.....  EXCEPT after the proper password and loginID has been verified, the WebProtect still prompts asking for the password that is specified through the Cpanel.  Needless to say this negates the usefullness of the code i've generated.

So, what do I do now?  Is there code that I can generate that will input the proper data into the WebProtect prompt?  If I disable the WebProtect, then somone can just type in my /members/.... URL.

Any help would be appreciated,
Drew
Logged
TWebMan
Quantum Encyclopedia Writer
*****
Offline Offline

Posts: 3112



WWW
« Reply #1 on: April 13, 2003, 01:47:48 AM »

Once a user is logged in, there should be no more login promts.  Are you trying to draw images or something from another protected area?
Logged

"Computers cause people to make more mistakes than any other invention in history, with the possible exception of handguns and tequila."  - Unknown
"Liberty of any kind is seldom lost all at once." - D. Hume
Every day is an Ode to Joy
The planet will be fine... and so will your site
drew69
Spacescooter Operator
*****
Offline Offline

Posts: 45


« Reply #2 on: April 13, 2003, 09:37:29 AM »

right, they only have to log on through the webprotect deal once.  But I have a login and password form on my page that checks the information through my MYSQL database.

I think I may have to just disable the webprotect and do individual page security via ASP pages.  But that is not so increcibly reliable, ya know.
Logged
newcomer81
Spaceship Navigator
*****
Offline Offline

Posts: 96



WWW
« Reply #3 on: April 14, 2003, 07:30:22 AM »

Quote
I think I may have to just disable the webprotect and do individual page security via ASP pages. But that is not so increcibly reliable, ya know.


Use sessions and it will be reliable by setting a session variable. At the top of each page check to see if the sesion has been logged in, if they havn't redirect to a login page. if they have logged in then display the page.
Logged
TWebMan
Quantum Encyclopedia Writer
*****
Offline Offline

Posts: 3112



WWW
« Reply #4 on: April 21, 2003, 07:10:49 AM »

I'd say disable the asp logins and leave the web protect.
Logged

"Computers cause people to make more mistakes than any other invention in history, with the possible exception of handguns and tequila."  - Unknown
"Liberty of any kind is seldom lost all at once." - D. Hume
Every day is an Ode to Joy
The planet will be fine... and so will your site
Pages: [1]   Go Up
  Print  
 
Jump to: