Session_register on PHPBB

This is an archive of the phpBB 2.0.x support forum. Support for phpBB2 has now ended.
Forum rules
Following phpBB2's EoL, this forum is now archived for reference purposes only.
Please see the following announcement for more information: viewtopic.php?f=14&t=1385785
Locked
alehawk
Registered User
Posts: 33
Joined: Sun Nov 13, 2005 12:54 am

Session_register on PHPBB

Post by alehawk »

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\wwwroot\ad\cache\tpl_ca_classic.overall_header.php:7) in C:\Inetpub Apache\wwwroot\ad\test_cartanataltestinc.php on line 2

How can I handle my own session variables with phpbb?

Tnx!!!!
Locked

Return to “2.0.x Support Forum”