Re: [PHP] php htaccess logins and logouts

2009-11-26 Thread Andy Shellam (Mailing Lists)
Hi, > > IIRC if you unset $_SERVER['PHP_AUTH_USER'] and > $_SERVER['PHP_AUTH_PW'] it will log you out. I've done some research on this in the past - and not all browsers/web servers honour that as it's the browser that keeps the username/password cached and sends it after a 401 response, so th

Re: [PHP] php htaccess logins and logouts

2009-11-26 Thread James McLean
On Fri, Nov 27, 2009 at 12:12 AM, Ashley Sheridan wrote: > Hi all, > > I've got a site set up that is using an htaccess file to provide secure > access to a directory. That is working fine. What I wondered was, is > there a way to log out via PHP. As I understand it, the login mechanism > is part

[PHP] php htaccess logins and logouts

2009-11-26 Thread Ashley Sheridan
Hi all, I've got a site set up that is using an htaccess file to provide secure access to a directory. That is working fine. What I wondered was, is there a way to log out via PHP. As I understand it, the login mechanism is part of Apache, so I guess what I'm really asking is, is there a way that

RE: [PHP] php .htaccess

2006-01-11 Thread Weber Sites LTD
our browser http://toolbar.weberdev.com -Original Message- From: enediel gonzalez [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 11, 2006 4:50 PM To: php-general@lists.php.net Subject: [PHP] php .htaccess Hello I've a site with a .htaccess defined, the users have to enter the

Re: [PHP] php .htaccess

2006-01-11 Thread Robin Vickery
On 1/11/06, enediel gonzalez <[EMAIL PROTECTED]> wrote: > Hello > > I've a site with a .htaccess defined, the users have to enter the login and > password to get in, > Is it possible on php to ask the apache server wich user is using the > current session? $_SERVER['REMOTE_USER'] -robin

[PHP] php .htaccess

2006-01-11 Thread enediel gonzalez
Hello I've a site with a .htaccess defined, the users have to enter the login and password to get in, Is it possible on php to ask the apache server wich user is using the current session? I'd like to give the users the oportunity to change their password but without ask again who are you.

Re: [PHP] php .htaccess autologin

2003-12-12 Thread Eric Bolikowski
"Justin Patrin" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Jas wrote: > > > Combination of session vars and cookie vars... > > example... > > [login page] > > sets cookie with auth=0 (variable) > > sets session with auth=0 (variable) > > > > [logged in page(s)] > > sets cookie w

Re: [PHP] php .htaccess autologin

2003-12-11 Thread Justin Patrin
Jas wrote: Combination of session vars and cookie vars... example... [login page] sets cookie with auth=0 (variable) sets session with auth=0 (variable) [logged in page(s)] sets cookie with auth=1 (variable -client side) sets session with auth=1 (variable -server side) hash of users password as cl

Re: [PHP] php .htaccess autologin

2003-12-11 Thread Jas
Combination of session vars and cookie vars... example... [login page] sets cookie with auth=0 (variable) sets session with auth=0 (variable) [logged in page(s)] sets cookie with auth=1 (variable -client side) sets session with auth=1 (variable -server side) hash of users password as client side va

Re: [PHP] php .htaccess autologin

2003-12-11 Thread Evan Nemerson
On Thursday 11 December 2003 04:17 pm, ROBERT MCPEAK wrote: > I've dug around quite a bit and can't figure out how I might use PHP to > handle an .htaccess login. For example, if I wanted a script to log in the > user, rather than the user logging in with the standard .htaccess dialog. > > Any ide

[PHP] php .htaccess autologin

2003-12-11 Thread ROBERT MCPEAK
I've dug around quite a bit and can't figure out how I might use PHP to handle an .htaccess login. For example, if I wanted a script to log in the user, rather than the user logging in with the standard .htaccess dialog. Any ideas? Since the .htaccess vars are stored in the browser, should I b

Re: [PHP] php/.htaccess/.htpasswd

2002-05-03 Thread serj
Being that the files are owned by their respective users, I would imagine that would make it pretty difficult for the .htaccess file to be overwritten, if someone found a way to overwrite the file couldn't that person overwrite any file owned by the ftp user anyway? also I don't see how someon

RE: [PHP] php/.htaccess/.htpasswd

2002-05-03 Thread John Holmes
Cc: [EMAIL PROTECTED] > Subject: Re: [PHP] php/.htaccess/.htpasswd > > You could use fopen() to connect to the file via ftp therefore keeping > the .htaccess file owned by the user for increased security. > > Josh Boughner > > On Fri, 3 May 2002, Mike Eheler wrote: >

Re: [PHP] php/.htaccess/.htpasswd

2002-05-03 Thread Mike Eheler
If someone can overwrite your .htaccess there's a chance they can also view files through the same exploit (possibly). They could then get your FTP login info, and do a lot more damage than just removing password access to an area. Mike Serj wrote: > Im not exactly sure why that is worse, cou

Re: [PHP] php/.htaccess/.htpasswd

2002-05-03 Thread Mike Eheler
You also can't overwrite files using the fopen() method. You'd need to FTP in, then delete the file, then fopen() it.. or just do the whole thing in one FTP session (write to a temp file, upload it, erase the temp file). Mike Miguel Cruz wrote: > Thus leaving the FTP account's password in vie

Re: [PHP] php/.htaccess/.htpasswd

2002-05-03 Thread serj
Im not exactly sure why that is worse, could you elaborate a little? Josh On Fri, 3 May 2002, Miguel Cruz wrote: > Thus leaving the FTP account's password in view of the httpd, which is > even worse... > > miguel > > On Fri, 3 May 2002, serj wrote: > > You could use fopen() to connect to the

Re: [PHP] php/.htaccess/.htpasswd

2002-05-03 Thread Miguel Cruz
Thus leaving the FTP account's password in view of the httpd, which is even worse... miguel On Fri, 3 May 2002, serj wrote: > You could use fopen() to connect to the file via ftp therefore keeping > the .htaccess file owned by the user for increased security. > > Josh Boughner > > On Fri, 3

Re: [PHP] php/.htaccess/.htpasswd

2002-05-03 Thread serj
You could use fopen() to connect to the file via ftp therefore keeping the .htaccess file owned by the user for increased security. Josh Boughner On Fri, 3 May 2002, Mike Eheler wrote: > It's possible, but is it really recommended? Wouldn't the > .htaccess/.htpasswd file have to be owned by t

Re: [PHP] php/.htaccess/.htpasswd

2002-05-03 Thread Mike Eheler
It's possible, but is it really recommended? Wouldn't the .htaccess/.htpasswd file have to be owned by the apache user, which might leave it open to being overwritten by any kind of a weak/exploitable script? Mike Josh & Valerie McCormack wrote: > I've used the script phtaccess, which I think

Re: [PHP] php/.htaccess/.htpasswd

2002-05-03 Thread Josh & Valerie McCormack
I've used the script phtaccess, which I think used the mentioned class. Super easy to use. Josh >On Wed, 1 May 2002, Kelly Meeks wrote: > >>> Is is possible to use php to admin a password file used by a .htaccess file? >> > > You should check the File_Passwd class from PEAR. > > htt

Re: [PHP] php/.htaccess/.htpasswd

2002-05-02 Thread Mika Tuupola
On Wed, 1 May 2002, Kelly Meeks wrote: > Is is possible to use php to admin a password file used by a .htaccess file? You should check the File_Passwd class from PEAR. http://chora.php.net/cvs.php/php4/pear/File -- Mika Tuupola http://www.appelsiini.net/~t

Re: [PHP] php/.htaccess/.htpasswd

2002-05-01 Thread 1LT John W. Holmes
AIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, May 01, 2002 2:12 PM Subject: [PHP] php/.htaccess/.htpasswd Is is possible to use php to admin a password file used by a .htaccess file? I know that sometimes it is easier/more robust to manage password protection via sessions/data

[PHP] php/.htaccess/.htpasswd

2002-05-01 Thread Kelly Meeks
Is is possible to use php to admin a password file used by a .htaccess file? I know that sometimes it is easier/more robust to manage password protection via sessions/database, but I've got a client that wants to use a .htaccess file. How do you deal with the encryption of the passwords, etc?

Re: [PHP] PHP & HTACCESS

2001-02-08 Thread Richard Lynch
> Does anybody know or have some PHP code to read the htaccess file. Off the top of my head: You may need to use mcrypt(), and the encryption used by your OS may or may not be available, and your OS may or may not have been configured at some point to use a different encryption, so the passwor

Re: [PHP] PHP & HTACCESS

2001-02-08 Thread Jean-Arthur Silve
hello, you can see with the following syntax : http://login:[EMAIL PROTECTED]/protecteddir/ So, the user enter the code and passwd from a PHP form, then you redirect him with this syntax. But prefer redirection with a javascript, because M$ Explorer seems do not love this: Header("Location:

Re: [PHP] PHP & HTACCESS

2001-02-08 Thread Christian Sakshaug
Hey Take a look at www.phpbuilder.com, www.devshed.com or one of they many good sites on the net. Here you will find tutorials, forums, tips etc, that you can use for increase your experiance. I also suggest books to increase your exp to... http://www.php.net/links.php for more links At 05

[PHP] PHP & HTACCESS

2001-02-07 Thread Sefton
Hello Everybody, Does anybody know or have some PHP code to read the htaccess file. I have a couple of directorys protected by the htaccess & htpasswd files on the Unix Apache server I use. But I want to create a webpage with input boxes to simulate the popup dialog that appears when entering the