I have some includes of php files in my main page, do i need to put session_start(); in this pages to?
includes need session_start()?
hi!
if you have something like this:
<?php
session_start();
include("file.php");
?>
then there is no need to add session_start() again to file.php
hi,
yes, its works.... nice, but if try to use window.open thyen in this new page.php i supose i need do put session_start();
in the begining....but give me always warnings....
yes, on every new page you have to declare session_start()
and by using window.open it is definitely a new one
but when in put session_start() its give this warnings?
try to find the problem...but my knowledeg...
this warning if familiar to you?
Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/httpd/vhosts/mysite.com/httpdocs/menu_main.php:2) in /home/httpd/vhosts/mysite.com/httpdocs/menu_main.php on line 9
Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/httpd/vhosts/mysite.com/httpdocs/menu_main.php:2) in /home/httpd/vhosts/mysite.com/httpdocs/menu_main.php on line 9
session_start() has to be in your code before any output.
try to put session_start() in your first row.
i can't believe......finaly its works.......
thanks a lot for everything,
Nelson MB