Page 1 of 1

sessions in include files not working

Posted: Sun Sep 17, 2006 5:39 am
by reecec
Hi all,

I have a script that uses two include files both using sessions it doesnt seem to like it as the header as already been sent in first file.

is there anyway to end the session in the first file once it has ended


Thanks reece

Posted: Sun Sep 17, 2006 5:41 am
by aaronhall
You only need to initiate the session once, somewhere before those two files are included. The included files will be able to see the session.

Posted: Sun Sep 17, 2006 4:05 pm
by reecec
Thanks that worked