Diferent user to diferent page

Hi, can anyone help me with a way to redirect diferent users from the database to diferent pages
user1- to page one
user2- to page 2

Thnx

Set the userid using $_SESSION and use header redirect.