Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> GT - Next Gen and Standard
Author Message
perfect-games
Regular
Regular


Joined: Oct 28, 2004
Posts: 84

PostPosted: Fri May 27, 2005 12:32 pm Reply with quote

well i have install gt-nextgen countless times now, i checked my code over and over again and all is fine sessions,header,mainfile etc are all file but when i goto forums and click a topic it shows this

forum-1.html?sid=60c7fc82580d28adc2b71759a7cd6a3f

where my glance mod for the forum shows it correctly like forum-1.html

any idears whats causing it

thanks

steve
 
View user's profile Send private message
perfect-games
PostPosted: Fri May 27, 2005 1:02 pm Reply with quote

ok found the problem its cookies in sessions.php

i comment this out and it worked,
but is there a better way of doing it i sure its not safe

thanks

Code:
/*if ( isset($HTTP_COOKIE_VARS[$cookiename . '_sid']) || isset($HTTP_COOKIE_VARS[$cookiename . '_data']) )

   {
      $session_id = isset($HTTP_COOKIE_VARS[$cookiename . '_sid']) ? $HTTP_COOKIE_VARS[$cookiename . '_sid'] : '';
      $sessiondata = isset($HTTP_COOKIE_VARS[$cookiename . '_data']) ? unserialize(stripslashes($HTTP_COOKIE_VARS[$cookiename . '_data'])) : array();
      $sessionmethod = SESSION_METHOD_COOKIE;
   }
   else
   {
      $sessiondata = array();
      $session_id = ( isset($HTTP_GET_VARS['sid']) ) ? $HTTP_GET_VARS['sid'] : '';
      $sessionmethod = SESSION_METHOD_GET;
   }*/
 
perfect-games
PostPosted: Fri May 27, 2005 1:10 pm Reply with quote

right each time i connect i have a different ip and then that error goes but then comes back so its something with cookies,
i still not 100% sure what in sessions i looking for
 
Susann
Moderator


Joined: Dec 19, 2004
Posts: 3191
Location: Germany:Moderator German NukeSentinel Support

PostPosted: Fri May 27, 2005 2:07 pm Reply with quote

Why is that an error ? I´ve never comment out the sessions and it works fine.In the phpBB forums configuration is also something about sessions. Are all your topics with session ids ?
 
View user's profile Send private message
perfect-games
PostPosted: Fri May 27, 2005 2:18 pm Reply with quote

yes , well i just found the problem i never comment this out before but this works

remove the sid from
Code:
if ( !empty($SID) && !eregi('sid=', $url) && !areyouabot() )


now it works better. Very Happy
 
Susann
PostPosted: Fri May 27, 2005 2:24 pm Reply with quote

Smile I meant the cookie domain in the phpBB forums configuration. But thats´s better.
 
perfect-games
PostPosted: Fri May 27, 2005 2:32 pm Reply with quote

cant beleave i had problems i installed gt-nextgen on over 30 sites and this is the first small error i found well atlest it works
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> GT - Next Gen and Standard

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©