Trapping logged in event on accounts google

iam using google signup for my website
now when the users logs in he should be redirected to the members page and when he logs out
he should get redirected to the home page

and only logged in users shall have access to members page

how can i do that and where do i trap the event