ID:               38032
 Updated by:       [EMAIL PROTECTED]
 Reported By:      tamagog02000 at yahoo dot com
-Status:           Open
+Status:           Feedback
 Bug Type:         Session related
 Operating System: xp
 PHP Version:      4.4.2
 New Comment:

Please provide SHORT and COMPLETE reproduce script which we can
copy/paste and reproduce the problem.
I'm sure you don't need any databases to reproduce it, do you?


Previous Comments:
------------------------------------------------------------------------

[2006-07-07 12:28:26] tamagog02000 at yahoo dot com

ob_start();
session_start();
require("connect.php");
 $username=$_POST['user'];
$password=$_POST['pass'];
$sql=" select * from member where username='$username' and password
='$password'";
$result=mysql_query($sql) or die('query failed:'.mysql_error());
 $line=(mysql_fetch_array($result,MYSQL_ASSOC));
 $user=$line['username'];
 $pass=$line['password'];
 $lname=$line['lname'];
 $id=$line['mem_id'];
$_SESSION[0]=$user;

------------------------------------------------------------------------

[2006-07-07 12:16:44] [EMAIL PROTECTED]

Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc.

If possible, make the script source available online and provide
an URL to it here. Try to avoid embedding huge scripts into the report.



------------------------------------------------------------------------

[2006-07-07 12:14:31] tamagog02000 at yahoo dot com

Description:
------------
hi my problem is when am using session_start() i get this error
Warning: session_start() [function.session-start]: Cannot send session
cookie - headers already sent by (output started at C:\Program
Files\xampp\htdocs\Copy of finalproject\signin.php:2) in C:\Program
Files\xampp\htdocs\Copy of finalproject\signin.php on line 4

Warning: session_start() [function.session-start]: Cannot send session
cache limiter - headers already sent (output started at C:\Program
Files\xampp\htdocs\Copy of finalproject\signin.php:2) in C:\Program
Files\xampp\htdocs\Copy of finalproject\signin.php on line 4
1 
inspite that am using ob_start() befor session_start() what should i
do? here i wanna let username and id be seen by any page in website?



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=38032&edit=1

Reply via email to