I need a simple login script that has the ability to redirect a user.
- I want to be able to protect certain pages so that a user has to login to access them (in this case they wouldn't get redirected)
- Then in another case I would want the ability to redirect a user based on their login. For example, have a login box and store it as a session or cookie, then they could click on a My Account link and be directed to their specific folder.
For registration, I would need a username, password, company name, email address, and possibly a homedirectory variable (used to determine where to redirect them to).
Does something out there exist?