0

it's my page https://www.dropbox.com/s/y66y4b74m6kpm9w/login.php?dl=0

on my localhost ( made with xampp ) it works well even i tried the whole code in cpanel and it had no problems! but in plesk panel ... i see this error

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at *.\httpdocs\private\login.php:8) in ****.***\httpdocs\private\login.php on line 16

it says i have error in line 8 ! and the problem is that line 8 is not even written in php ! it's just calling for javascript library ! i tried everything such as ob_start,ob_clean and many other things ... and maybe it would be helpful that i wrote this code in komodo IDE how should i fix the error ? the whole cms is written by sessions and i can't use another method for log in ...

D4V1D
  • 5,805
  • 3
  • 30
  • 65
  • This is because you have started session on `line no. 16` you have to start session on line 1 before any other php/html code. – Sagar Guhe Sep 08 '15 at 14:24

1 Answers1

1

You have to use session_start(); before you output any HTML, so that the session cookie can be sent.

Like:

<?php session_start();?>
<!DOCTYPE HTML>
<html>
...
syck
  • 2,984
  • 1
  • 13
  • 23