O.K. This seems like a newb mistake, but I could swear that I'm not one... 😃
k...
The complete error is this:
Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/httpdocs/bojan/admin.php:1) in /home/httpdocs/bojan/common.php on line 2
As far as I know the error of this type occurs when there is something in front ot the session_start() like a space or ANYTHING at all... Right?
Well, there isn't anything there...
I have two scripts and on the beginning of the one I have:
<?php
require_once("common.php");
.
.
.
On the common.php page I have:
<?php
sesion_start();
.
.
.
And one more thing: on my machine it works without a flaw...
Also, I allways use this type of session starting in all of my scripts i.e. from some other page where all settings are and it allways works fine...
So, I'm thinking it has to be a server because it is a server where I have never hosted before, BUT - if that's the case why all other pages with same lines work?
Am I going crazy?
What settings should I take a look at? And what is causing the error? And how come only on this page? If you need the whole code to help me please let me know, although I cannot think of any reason why would matter anything below these lines...
Thanx in advance...