Login problem using CakePhp in session_regenerate_id () [duplicate]

0

Testing at home, my CakePHP project works perfectly. However, when executing the same project on the site, with the appropriate changes, as expected, it shows a slightly different behavior.

But a problem is really bothering me when trying to login:

Warning (2): Cannot modify header information - headers already sent by
(output started at /local/local/local/site/app/Model/User.php:54)        
[CORE/Cake/Model/Datasource/CakeSession.php, line 686]
Warning (2): session_regenerate_id() [function.session-regenerate-id]: Cannot regenerate s           
session id - headers already sent [CORE/Cake/Model/Datasource/CakeSession.php, line 688]
    
asked by anonymous 23.04.2014 / 05:11

1 answer

3

Your code is doing some data output before sending or modifying the headers. If you take a look this stackoverflow article in English they explain very well.

Next time you need help, put the snippet of code where you think the error is being generated that makes it easier for anyone to respond.

    
24.04.2014 / 09:23