Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 03-07-2003, 09:50 PM   PM User | #1
Bengal313
Regular Coder

 
Bengal313's Avatar
 
Join Date: Jun 2002
Location: Metro Detroit
Posts: 298
Thanks: 8
Thanked 0 Times in 0 Posts
Bengal313 is an unknown quantity at this point
password protect

I need to password protect some php files that allow database updates, deletes, add. I have quite a few files. Is there a way I can have a login/out for a entire folder. So, once someone clicks on the link from outside the folder, they are promted for a username and password. But, once in they are not prompted again. The password expires once the browser is closed or logged out? Can someone please tell me where I can find such a script. Better yet, give me a name. Thank you everyone
__________________
"Knowledge Speaks But Wisdom Listens"
Bengal313 is offline   Reply With Quote
Old 03-07-2003, 11:44 PM   PM User | #2
Phantom
Regular Coder

 
Join Date: Feb 2003
Location: East Side/West Side
Posts: 118
Thanks: 0
Thanked 0 Times in 0 Posts
Phantom is an unknown quantity at this point
Use .htaccess
Phantom is offline   Reply With Quote
Old 03-08-2003, 04:28 AM   PM User | #3
lord_raven
New Coder

 
Join Date: Mar 2003
Posts: 49
Thanks: 0
Thanked 0 Times in 0 Posts
lord_raven is an unknown quantity at this point
http://www.javascriptkit.com/howto/htaccess3.shtml
lord_raven is offline   Reply With Quote
Old 03-09-2003, 10:42 AM   PM User | #4
Jesh
Registered User

 
Join Date: Feb 2003
Posts: 43
Thanks: 0
Thanked 0 Times in 0 Posts
Jesh is an unknown quantity at this point
I use sessions..

I used to use htaccess, but you can't prompt username/password from a page for example, like hotmail.

Its possible, but its gotta be something like http://usernameassword@site.com/ and has obvious security problems.

Jesh
Jesh is offline   Reply With Quote
Old 03-09-2003, 10:13 PM   PM User | #5
lord_raven
New Coder

 
Join Date: Mar 2003
Posts: 49
Thanks: 0
Thanked 0 Times in 0 Posts
lord_raven is an unknown quantity at this point
I prefer htaccess, but, like any other secure area, there's always security issues...
lord_raven is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 07:57 AM.


Advertisement
Log in to turn off these ads.