Hi every one, Plz help me hurry.
Actualy problem is this:
my whole website is running in a right way our company server.
but this website not run in the client server, and show this message, when we login and go the next page.
error is:
Warning: Cannot send session cache limiter - headers already sent (output started at c:\apache\htdoc s\medscout\www\ connection.php: 1) in c:\apache\htdoc s\medscout\www\ my-medscout.php on line 5
but when we used @ before session.
like: @session_start( );
then above warning is reduce and when we logout then show this warning.
Warning: Cannot add header information - headers already sent by (output started at c:\apache\htdoc s\medscout\www\ connection.php: 1) in c:\apache\htdoc s\medscout\www\ logout.php on line 7
and log out code is this:
<?php
include_once("c onnection.php") ;
@session_start( );
$_SESSION["username"]="";
$_SESSION["uid"]="";
session_destroy ();
header("Locatio n:index.php");
?>
Thankyou
Regards
Anis
Actualy problem is this:
my whole website is running in a right way our company server.
but this website not run in the client server, and show this message, when we login and go the next page.
error is:
Warning: Cannot send session cache limiter - headers already sent (output started at c:\apache\htdoc s\medscout\www\ connection.php: 1) in c:\apache\htdoc s\medscout\www\ my-medscout.php on line 5
but when we used @ before session.
like: @session_start( );
then above warning is reduce and when we logout then show this warning.
Warning: Cannot add header information - headers already sent by (output started at c:\apache\htdoc s\medscout\www\ connection.php: 1) in c:\apache\htdoc s\medscout\www\ logout.php on line 7
and log out code is this:
<?php
include_once("c onnection.php") ;
@session_start( );
$_SESSION["username"]="";
$_SESSION["uid"]="";
session_destroy ();
header("Locatio n:index.php");
?>
Thankyou
Regards
Anis
Comment