Mutley Posted December 4, 2006 Share Posted December 4, 2006 I have included my login page into a HTML page.It had a "Cannot modify headers already sent" error, which I got rid of using:[code]error_reporting(0);[/code]However, when I try to login, it doesn't seem to work, it just redirects me back to the login, like the cookies arn't working, however going to the separate login file when not included, it works fine.Any ideas? Would it be anything to do with the header and ob_start? Link to comment https://forums.phpfreaks.com/topic/29424-cookies-wont-work-with-login-file-included/ Share on other sites More sharing options...
onlyican Posted December 4, 2006 Share Posted December 4, 2006 the cookies aint going to work, as you can not modify the headers, which the error message was tryingTry adding this at the top of your script (Line 1)<?phpob_start();?> Link to comment https://forums.phpfreaks.com/topic/29424-cookies-wont-work-with-login-file-included/#findComment-135048 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.