Active
Project:
Single Login
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
17 Aug 2011 at 17:43 UTC
Updated:
17 Aug 2011 at 17:45 UTC
Hi,
I found a strange behavior: i was using Chrome, Firefox and Safari each one with a different logged user.
Then, working at my theme i used this code:
global $user;
db_query('UPDATE {node_counter} SET daycount = daycount + 1, totalcount = totalcount + 1, timestamp = %d WHERE nid = %d', time(), $node->nid);
db_query('UPDATE {history} SET timestamp = %d WHERE nid = %d AND uid = $d', time(), $node->nid, $user->uid);
I was trying to increase total count of a node called by views.
And then, after refreshing the page, all users were user 1...i unistalled the modules and even so the session for all browser was only one, the uid =1.
I wasn't working with sessions, only with the history...so why did it make all this mess?
thanks