I create login page with cookies and sessions in php. cookies and sessions are displayed in profile page but it is not redirecting to previous page any solution for this