Jump to content

[SOLVED] SMF forum putting my session problem


asmith

Recommended Posts

my forum folder is    mydomain.com/forum

 

i've tried to make it when the user click on the forum link , it logout him from the site so a user can't be logged in , in both forum and my site .

 

i've put

 

if (isset($_SESSION[mysite]))
     {
      session_destroy();
     }

 

at the first of the index.php file in forum foler . like :

 

<?php 
if (isset($_SESSION[mysite]))
     {
      session_destroy();
     }

/********* ... <-- the indexphp continue its own code 

 

 

 

but when i click on the forum link , which is  mydomain.com/forum

 

it won't logout me from my site pages, 

what am i doing wrong  ?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.