vcherubini
Programmer
Hello:
I am working with session management and I keep getting the same error:
Warning: Cannot send session cache limiter - headers already sent (output started at lib.inc.php:233) in c:\apache\htdocs\mobius\login.php on line 6.
login.php looks like this:
[tt]
<?php
include("lib.inc.php"
connect();
login("SELECT * FROM users WHERE username='$username' AND password='$password'"
back();
session_start();
session_register("username"
?>
[/tt]
What I want to happen is when a user types his/her password in on index.php, it will authenticate them (that part works fine) and then register the variables $username and $password so that I can use them throughout the remainder of the user session on my site.
Any help on how I can get this to work would be greatly appreciated.
Thanks.
-Vic
vic cherubini
vikter@epicsoftware.com
====
Knows: Perl, HTML, JavScript, C/C++, PHP, Flash, Director
====
I am working with session management and I keep getting the same error:
Warning: Cannot send session cache limiter - headers already sent (output started at lib.inc.php:233) in c:\apache\htdocs\mobius\login.php on line 6.
login.php looks like this:
[tt]
<?php
include("lib.inc.php"
connect();
login("SELECT * FROM users WHERE username='$username' AND password='$password'"
back();
session_start();
session_register("username"
?>
[/tt]
What I want to happen is when a user types his/her password in on index.php, it will authenticate them (that part works fine) and then register the variables $username and $password so that I can use them throughout the remainder of the user session on my site.
Any help on how I can get this to work would be greatly appreciated.
Thanks.
-Vic
vic cherubini
vikter@epicsoftware.com
====
Knows: Perl, HTML, JavScript, C/C++, PHP, Flash, Director
====