Jump to content

Password Protect A Directory Using Php


driz

Recommended Posts

Hi, is their a nice simple way to password protect an entire directory like say a sub domain as "secure.domain.com" without having to use sessions on every single page and sub directory etc. Basically recreating what htaccess password protect does but with PHP instead.

Link to comment
Share on other sites

What I meant was say I had a sub domain called dev.domain.com and then withing it several directories like dev.domain.com/mysite1/ and dev.domain.com/mysite2/ i dont want to have to add the session code to each page to control whether the person is logged in, rather have the security on the entire sub domain automatically. BUT i want to build an actual interface using PHP so say someone trys accessing one those mini sites they will have to authenticate beforehand.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...