seduction city Posted July 30, 2010 Share Posted July 30, 2010 I have a serious issue that I am not sure what the solution is. When the first of my night reset crons run something happens and my server sessions get "mixed" up I believe. Simply put players move into some other player account the code in the job is <?php include "config.php"; global $_CONFIG; if($_GET['code'] != $_CONFIG['code']) { die(""); } define("MONO_ON", 1); require "class/class_db_{$_CONFIG['driver']}.php"; $db=new database; $db->configure($_CONFIG['hostname'], $_CONFIG['username'], $_CONFIG['password'], $_CONFIG['database'], $_CONFIG['persistent']); $db->connect(); $c=$db->connection_id; mysql_query("UPDATE users SET daysold=daysold+1"); mysql_query("UPDATE users SET daysingang=daysingang+1 WHERE gang >= 1"); mysql_query("UPDATE users SET cdays=cdays-1 WHERE cdays >= 1"); mysql_query("UPDATE users SET boxes_opened=0"); mysql_query("UPDATE users SET mailban=mailban-1 WHERE mailban >= 1"); mysql_query("UPDATE users SET cloak=cloak-1 WHERE cloak >= 1"); mysql_query("UPDATE users SET protime=0 WHERE protime > 0"); mysql_query("UPDATE users SET msex=0"); mysql_query("UPDATE users SET lsex=0"); ?> I do not know what i can do to help debug. We have a good dedicated server so the problem shouldn't be there. If there is anyone who can help, give ideas or advise it would be appreciated, and if this is complicated and going to be time consuming we can discuss fees for this assistance. Quote Link to comment Share on other sites More sharing options...
Danny696 Posted July 30, 2010 Share Posted July 30, 2010 Check out session hijacking. Secure your site Learn php Nothing wrong with code. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.