Dreamweaver CS 5 - Login and redirect to a restricted page

I have setup a MySQL database and an application in Dreamweaver with php. I have a login page that let’s the user go to the Index page once logged in. The index page is also restricted, so what is happening is that once I try to login I am not being redirected to the index page. But if I remove restriction on the index page, I am redirected. Any help?