Thanks Noel and Anthony both have worked! what it was worrying me is that I didn't want to just redirect the user, it will have to run some code and will redirect to specific pages based on user group and data on page. I guess i would put these codes in a page anyway and redirect, but perhaps it will take a second in this page and it must be transparently. now I will insert the code at this function and continue tests.Thanks.
ps:Sorry if was not so clear.

