Forum Moderators: open
find the routine in the code which tacks on a session id to the URL and have it make sure the USER_AGENT environment variable does not contain the string 'Googlebot' before it does that. might wanna include some other popular bots too.
and keep links to topics on your site as simple as possible, only one or two variables if you can (i.e [domain.com...] )
#
#-----[ OPEN ]------------------------------------------
#
includes/sessions.php
#
#-----[ FIND ]------------------------------------------
#
//
// Does a session exist?
//
#
#-----[ BEFORE, ADD ]------------------------------------------
#
// Use the cookie user_id if available to pull basic user prefs.
$user_id = ( isset($sessiondata['userid']) )? intval($sessiondata['userid']) : ANONYMOUS;
if($user_id!= ANONYMOUS)
{
#
#-----[ FIND ]------------------------------------------
#
return $userdata;
#
#-----[ BEFORE, ADD ]------------------------------------------
#
}
else
{
// Need to create some userdata
$userdata['session_id'] = '';
$userdata['session_ip'] = '';
$userdata['session_user_id'] = $user_id;
$userdata['session_logged_in'] = 0;
$userdata['session_page'] = '';
$userdata['session_start'] = '';
$userdata['session_time'] = '';
}
#
#-----[ FIND AND DELETE ]------------------------------------------
#
// If we reach here then no (valid) session exists. So we'll create a new one,
// using the cookie user_id if available to pull basic user prefs.
//
$user_id = ( isset($sessiondata['userid']) )? intval($sessiondata['userid']) : ANONYMOUS;
#
#-----[ FIND ]------------------------------------------
#
//
// Delete existing session
//
#
#-----[ BEFORE, ADD ]------------------------------------------
#
if(isset($session_id))
{
#
#-----[ FIND ]------------------------------------------
#
setcookie($cookiename . '_data', '', $current_time - 31536000, $cookiepath, $cookiedomain, $cookiesecure);
setcookie($cookiename . '_sid', '', $current_time - 31536000, $cookiepath, $cookiedomain, $cookiesecure);
#
#-----[ AFTER, ADD ]------------------------------------------
#
}
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
Good luck.