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... Link to comment https://forums.phpfreaks.com/topic/240868-keep-cookies-alive/ 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. Link to comment https://forums.phpfreaks.com/topic/240868-keep-cookies-alive/#findComment-1237236 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.. Link to comment https://forums.phpfreaks.com/topic/240868-keep-cookies-alive/#findComment-1237340 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.