hannan Posted July 1, 2011 Share Posted July 1, 2011 I am making a login system which has remember me feature... but when i close the browser and come back it gives the following error: This webpage has a redirect loop can anyone help me... Quote Link to comment Share on other sites More sharing options...
WebStyles Posted July 1, 2011 Share Posted July 1, 2011 cookies have the lifespan you configure (i.e. you choose how long they live). But a user's browser can also have cookies disabled, and you need to account for that. you probably have some code looking for a cookie, and redirecting if it does not find one, but you're redirecting to a page that does the same check, therefor you enter a non-stop loop. please post your code. Quote Link to comment Share on other sites More sharing options...
hannan Posted July 1, 2011 Author Share Posted July 1, 2011 hey thanks a lot.. there was some error in my code... i had put some session variables which were the cause.. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.