[thelist] Password verification then redirect

Paul paul.fisher at bushwhacker.co.uk
Wed Jan 3 03:49:08 CST 2001


Bob,

This seems like just the thing I'm looking for, as I'm using Apache, but I'm
a little confused as to how you specify a different html page for each user.
Does anyone know of a tutorial that deals with .htaccess and specific user
redirection?

Paul

-----Original Message-----
From: thelist-admin at lists.evolt.org
[mailto:thelist-admin at lists.evolt.org]On Behalf Of Bob Haroche
Sent: 03 January 2001 01:33
To: thelist at lists.evolt.org
Subject: Re: [thelist] Password verification then redirect


Here's a re-tread of a an old post of mine from another group.  This should
help:

-----------

> He wants the *password* to dictate which page the
> user goes to.

You can do this with plain old javascript, but it's not terribly secure.
Here's a tutorial on how to do it though:

http://mickweb.com/newpassword.html

If your server is apache you can password protect your directories using
.htaccess, which is more secure.  Once that's done, the following syntax
should take you into the protected directory without the common, pop up
password box.

http://username:password@http://www.domain.com/protected_folder.

You can then create your login form and use javascript to take the values
from the form fields and pass them into a URL in the above syntax.  I just
did this on this page:

http://www.greenengineering.net

You can try it logging in as "test" with the password "qwerty1".  You'll end
up at this URL:

http://www.greenengineering.net/clients/test/

If you close your browser and go to that URL directly, you'll get the pop up
dialogue box.

HTH.







____________________________
O n P o i n t  S o l u t i o n s
P.O. Box 694
Occidental, Ca  95465
707.874.1188
http://www.OnPointSolutions.com
----- Original Message -----
From: "Paul" <paul.fisher at bushwhacker.co.uk>
To: <thelist at lists.evolt.org>
Sent: Tuesday, January 02, 2001 2:20 AM
Subject: [thelist] Password verification then redirect


> Firstly, hope you all had a great 'turn-of-the-real-millennium'
>
> Secondly, and rather sadly, back to work...
> Can anyone direct me to a simple script that will take a username and
> password, validate it (preferably with .htaccess and .passwd files), and
> then send the user to his or her own sub directory.  I've looked all over
> for one of these but can't find one...
>
> Cheers,
> Paul
>
>
>
> ---------------------------------------
> For unsubscribe and other options, including
> the Tip Harvester and archive of TheList go to:
> http://lists.evolt.org Workers of the Web, evolt !


---------------------------------------
For unsubscribe and other options, including
the Tip Harvester and archive of TheList go to:
http://lists.evolt.org Workers of the Web, evolt !







More information about the thelist mailing list