Problem With Login

Hello, I’ve recently installed Yii on my A2Hosting account and just created a new webapp. Everythings seems ok untill I try to log. I get the following error:

PHP warning

session_regenerate_id() [function.session-regenerate-id]: Cannot regenerate session id - headers already sent

/home/mujeresy/public_html/yii/framework/web/CHttpSession.php(182)

170 {

171 session_id($value);

172 }

173

174 /**

175 * Updates the current session id with a newly generated one .

176 * Please refer to {php.net/session_regenerate_id} for more details.

177 * @param boolean $deleteOldSession Whether to delete the old associated session file or not.

178 * @since 1.1.8

179 */

180 public function regenerateID($deleteOldSession=false)

181 {

182 session_regenerate_id($deleteOldSession);

183 }

184

185 /**

186 * @return string the current session name

187 */

188 public function getSessionName()

189 {

190 return session_name();

191 }

192

193 /**

194 * @param string $value the session name for the current session, must be an alphanumeric string, defaults to PHPSESSID

Everything works just fine on my laptop, the problem only occurs on the server. Any help is welcome!

Problem solved, had a empty line at the beginning of main.php…