Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

Dreamweaver Login problem

New Here ,
May 02, 2009 May 02, 2009

Copy link to clipboard

Copied

I am using Dreamweaver CS3. Try to creaite Login page, using Login User from the tool box. Every ting looks good till I test the page at my local host directory. I am getting: Warnning: session_start()[function.session_start]: can not send session cookie-headers already sentin C:\xamp'hd\htdocks\MyWebApp\login.php on line 0 and second warning the same about session cashe limiter.

Any sugestion?

.

TOPICS
Server side applications

Views

876
Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
May 03, 2009 May 03, 2009

Copy link to clipboard

Copied

This is a case of "headers already sent". It's an issue that confuses a lot of beginners, and can sometimes be difficult to resolve.

PHP cannot create a session or use the header() function if there has been any output to the browser before the session is created or the header() function is called. What makes this sometimes difficult to understand is that "output to the browser" includes any whitespace, newline characters, or other control characters.

A common cause of the problem is extra whitespace outside the PHP tags in an include file. The login page includes the page with your MySQL connection, which is stored in the Connections folder. You need to check both the login page and the connection file to make sure there is no whitespace or newline characters outside the opening PHP tag on the login page or outside the opening and closing PHP tags in the connection file. You can tell if there are any newline characters after the closing PHP tag in the connection file if line numbers are turned on in Code view, as shown in the following screenshot:

headers_sent.png

The other potential cause of this problem is using the Unicode Signature (BOM) in PHP pages. Select Modify > Page Properties, and open the Title/Encoding category in the dialog box that opens. Make sure there is NO check mark in the Include Unicode Signature (BOM) checkbox.

bom.png

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 05, 2009 May 05, 2009

Copy link to clipboard

Copied

Thank you for this sugestion.

My case was a bit different. This problem was related to unproperly alocating the root directory in preferances, it suposed to be c:\xampp, and I used c:\xampp\htdocs

Secondary: I have stoped IIS and Adobe requiers IIS to run along with the other server.

After I fixed this problems every thing vent fine.

Thank you

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
May 05, 2009 May 05, 2009

Copy link to clipboard

Copied

LATEST

This problem was related to unproperly alocating the root directory in preferances, it suposed to be c:\xampp, and I used c:\xampp\htdocs

C:\xampp\htdocs is the correct place.

Secondary: I have stoped IIS and Adobe requiers IIS to run along with the other server

No. You should be running one server or the other. You cannot run both at the same time.

After I fixed this problems every thing vent fine.

I'm glad things are working for you, but it sounds as though your setup is still incorrect.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines