Welcome Guest, Not a member yet? Register   Sign In
Problems with the native session
#1

[eluser]Zorancho[/eluser]
Hi there, i have MY_Controller in the libraries folder and in its constructor i am starting a native session like this:
class MY_Controller extends Controller
{
public function MY_Controller()
{
parent::__construct();
session_start();
}
}

It worked well on my server, but then i put the application on real server and it gets me this error:
A PHP Error was encountered

Severity: Warning

Message: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at system/application/libraries/MY_Controller.php:1)

Where i am suppose to start the session before any output starts?
Thanks in advance
Zoran


Messages In This Thread
Problems with the native session - by El Forum - 05-20-2009, 05:15 AM
Problems with the native session - by El Forum - 05-20-2009, 05:19 AM
Problems with the native session - by El Forum - 05-20-2009, 05:38 AM
Problems with the native session - by El Forum - 05-20-2009, 05:47 AM
Problems with the native session - by El Forum - 05-20-2009, 05:49 AM
Problems with the native session - by El Forum - 05-20-2009, 06:50 AM
Problems with the native session - by El Forum - 05-20-2009, 10:01 AM
Problems with the native session - by El Forum - 05-20-2009, 01:32 PM
Problems with the native session - by El Forum - 05-20-2009, 03:18 PM
Problems with the native session - by El Forum - 05-20-2009, 08:40 PM
Problems with the native session - by El Forum - 05-20-2009, 08:42 PM
Problems with the native session - by El Forum - 05-21-2009, 02:04 AM
Problems with the native session - by El Forum - 05-22-2009, 09:46 PM
Problems with the native session - by El Forum - 05-23-2009, 04:58 AM
Problems with the native session - by El Forum - 05-23-2009, 04:59 AM



Theme © iAndrew 2016 - Forum software by © MyBB