Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Aiheen aloitti: Webrunner - tammikuu 20, 2006, 02:43:41 IP

Otsikko: problem with session and SSI
Kirjoitti: Webrunner - tammikuu 20, 2006, 02:43:41 IP
Hi,
I have created a page with the following start code:

ob_start();
$vp_page = 'index';
$ssi_layers = array('main');
require_once('forum/SSI.php');


Then i call from SSI the recent poll:


echo 'Poll:';
ssi_recentPoll();


When a user enters the website on this page and immediatly votes i get a session fault.
When another page (of the forum) is visited first i don't get this problem.
How can i create a session on this page (if needed)?
Otsikko: Re: problem with session and SSI
Kirjoitti: Webrunner - tammikuu 21, 2006, 08:07:46 AP
Also when someone presses the Log-out button they get a session ID fault.
I have been looking for the answer for quite some time now but i can't seem to find it :(