i have directories password protected using cpanel. I need a login script that will take the credentials from a login page and redirect the user to correct directory and pass the login/pass info to cpanel.
I have looked at scripts and I can't find anything to do what I need. I really need to have the whole directory password protected and not just the page where the user is being directed to. I have a script that does the above but it makes them login again upon redirect. I could use this if I have to but it seems a bit silly.

Can anyone recommend a solution for this?

Thanks!
Tom