Solved

session_register error

Posted on 2008-06-16
2
643 Views
Last Modified: 2008-06-16
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
0
Comment
Question by:rajesh_chd
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 49

Accepted Solution

by:
Roonaan earned 125 total points
ID: 21793255
Is there a space in front of your <?php token or an UTF BOM?
0
 
LVL 2

Author Comment

by:rajesh_chd
ID: 21793278
No there is no space... :)
Yes my editor was saving it as utf8, changed to ANSI.

Resolved

Thanks
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
MySQL limit and not so limited 13 61
How can I get these two for loops to talk to one another politely? 6 50
Prestashop modules custimzation 2 26
PHP, Curl and XML 13 13
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
This article discusses how to create an extensible mechanism for linked drop downs.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question