Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 6 of 6
  1. #1
    Junior Member
    Join Date
    Dec 2004
    Posts
    9
    Member #
    8387
    I've got a site where I want some pages to be accessible to the general public, and some to be password protected. Right now I accomplish this by using an htpasswd file, which requests that users log in when they try to access any password protected page for the first time. It works, but I'm sure there is a better way. The problem I run into is when an authenticated user has entered his password, and then wants to look at the public pages again. Because the public pages all have links back to the public index page, even an authenticated user is sent back here rather than to the password protected index page. Is there a way in the html to detect if the user is logged in and send him to the correct index page? Or is there another, better way to go about this?

  2.  

  3. #2
    Senior Member jbagley's Avatar
    Join Date
    Sep 2004
    Location
    Cape Town
    Posts
    845
    Member #
    7422
    What language have you designed this site in? php, asp??

  4. #3
    Junior Member
    Join Date
    Dec 2004
    Posts
    9
    Member #
    8387
    It's just straight HTML, with CSS, and a little bit of Javascript.

  5. #4
    Member marik's Avatar
    Join Date
    Oct 2004
    Posts
    31
    Member #
    7814
    If your stuck use brave net password protector it will help

  6. #5
    WDF Staff Wired's Avatar
    Join Date
    Apr 2003
    Posts
    7,657
    Member #
    1234
    Liked
    138 times
    Looks like that may be php based though.
    The Rules
    Was another WDF member's post helpful? Click the like button below the post.

    Admin at houseofhelp.com

  7. #6
    Junior Member
    Join Date
    Dec 2004
    Posts
    9
    Member #
    8387
    I'm looking for a fairly simple solution, not a drastic change. What I've got now works, but could be improved. I'm thinking there must be some system variable, or something that could be set (or is set by the OS) when a user is authenticated, then an if/then type statement could be coded into the page, i.e. if authenticated, load this page, else load this page. Any ideas?


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 01:44 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com