I know this similar to a recent "protect JS dir" thread but I didn't
want to hijack.

I'm working on an app that is a company extranet, so everything needs
to be protected. However, I've just learned that there will be several
regular html files stored under webroot and these must be protected
somehow. I'm trying to figure out how to have apache redirect any
request other than to css, js, img, or files dirs to a PHP script (or
UsersController?) that would check the session and redirect to login
if necessary. How to then redirect back to the originally requested
page I'll figure out later.

BTW, I need to use AuthComponent for this app, so HTTP Auth is out. I
know that I could use PagesController and store these in views, but
the client will be much more comfortable working with full HTML pages,
rather than templates, so I figure it's best to go with that.

Has anyone ever done something like this? Any ideas?

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to