astrodestino
IS-IT--Management
Hi!
I made a online test application where I need to work with session variables.
I got this code
session_start();
if (!session_is_registered("test_session"))
{
session_register("totaltest_session");
session_register("test_session");
session_register("pregunta_session");
session_register("titulo_session");
$test_session=0;
$totaltest_session=0;
$pregunta_session=0;
$titulo_session=0;
}
I added in config, in index, etc and I cannot register the session variables.
If I remove this and I add it to my test.php I get this error:
Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at C:\Inetpub Apache\ in C:\Inetpub Apache\ on line 2
How can I handle my own session variables ?
Tnx!!!!
I made a online test application where I need to work with session variables.
I got this code
session_start();
if (!session_is_registered("test_session"))
{
session_register("totaltest_session");
session_register("test_session");
session_register("pregunta_session");
session_register("titulo_session");
$test_session=0;
$totaltest_session=0;
$pregunta_session=0;
$titulo_session=0;
}
I added in config, in index, etc and I cannot register the session variables.
If I remove this and I add it to my test.php I get this error:
Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at C:\Inetpub Apache\ in C:\Inetpub Apache\ on line 2
How can I handle my own session variables ?
Tnx!!!!