Can I use $_SESSION to limit access to directories?
From: deko (deko_at_hotmail.com)
Date: 03/12/05
- Next message: Jan Pieter Kunst: "Re: Date format"
- Previous message: Steve: "Re: Can't get ODBC to work with PHP"
- Next in thread: Alvaro G. Vicario: "Re: Can I use $_SESSION to limit access to directories?"
- Reply: Alvaro G. Vicario: "Re: Can I use $_SESSION to limit access to directories?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 12 Mar 2005 19:59:23 GMT
I have a login script that creates a SESSION for authenticated users. But
authenticated users still need access to particular directories (which
contain files for download). My hosting provider lets me protect
directories with htaccess, but this means an already authenticated user must
enter credentials a second time in the pop up dialog that appears in the
browser window when attempting to download something from an
htaccess-protected directory. AFAIK, there is no way to pass credentials to
htaccess. How do I protect an authenticated user's files and/or
directories? Is there an alternative to htaccess?
Thanks in advance.
- Next message: Jan Pieter Kunst: "Re: Date format"
- Previous message: Steve: "Re: Can't get ODBC to work with PHP"
- Next in thread: Alvaro G. Vicario: "Re: Can I use $_SESSION to limit access to directories?"
- Reply: Alvaro G. Vicario: "Re: Can I use $_SESSION to limit access to directories?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|