I am trying to create a script to log a user in, then depending on which user it is, redirect them to a specific user page. For example, if the manager for xxx department logs in, he sees the xxx department homepage, and the manager for yyy department sees the yyy department homepage.
What do I code to make it recognize certain users and based on that redirect them accordingly? Any help at all will be appreciated. Thanks.