I have a problem startin my sessions. if I modify the php.ini to auto_start session, everything works correctly, but I want to start the session in a page inside the website. However, when I try to start and create a session variable (session_start(); and session_register("sessvar") I get this message:
Warning: Cannot send session cookie - headers already sent by (output started at c:\inetpub\wwwroot\website\website\home.php:8) in c:\inetpub\wwwroot\website\website\home.php on line 114
Warning: Cannot send session cache limiter - headers already sent (output started at c:\inetpub\wwwroot\website\website\home.php:8) in c:\inetpub\wwwroot\website\website\home.php on line 114
Please help me
Joerg411 wrote:
Hi there!
I´ve a big problem with my own database-session-managment! I´ve a Login frame and when the user is correct i write a database-session (with my own handler). But all the frames in IE6 at example gives me another SessionID
handler source:
session_set_save_handler(....Sess_Read..)
function Sess_Read($Schluessel) {
echo $Schluessel; <= ID
......
frame-source:
session_start();
$_SESSION[UserName]...and so on...
IE5.5 gives me in all the frames 1 ID, but that´s the only one ;-(
Please help me, thanks a lot
Jörg