session_register error

Hi Experts

I am new to PHP programming.  I have this code in one of my php files

<?php
ob_start();
session_register("parentid");
session_register("userid");
session_register("userlevel");
session_register("username");
include('database.php');
ob_end_flush();
?>
<html>
<head>
...

When I run this file, I get this error.

Warning: session_register() [function.session-register]: Cannot send session cache limiter - headers already sent (output started at /home/aarrsoft/public_html/wiz/cvwiz.php:1) in /home/aarrsoft/public_html/cwiz/cvwiz.php on line 3

Please help me to resolve it

Thanks
LVL 2
rajesh_chdAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
RoonaanConnect With a Mentor Commented:
Is there a space in front of your <?php token or an UTF BOM?
0
 
rajesh_chdAuthor Commented:
No there is no space... :)
Yes my editor was saving it as utf8, changed to ANSI.

Resolved

Thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.