I had a bit of trouble implementing Mixpanel’s user tracking in WordPress – some of the functionality needed to be client-side, some server-side. Finally, figured out how to do it. Perhaps this will save you some headache 🙂 Continue reading
Category Archives: Development
Mayhaps I am slow, but this is how I was finally able to give access to my AWS server to another person:
After restoring, sometimes I found that I have a user in the database, but it’s not linked to a global user. Found this to work:
sp_change_users_login ‘auto_fix’, ‘SOME_USER’
Oh yeah – I first created the user under the top-most Security folder and then ran this on the specific database.
Found it here.
And you are running a back-end, where you want to forget FB session (is there a better way?), then you can use the following:
$facebook = new Facebook($fb_config);
Yeah… I know… stupid easy. I kept wondering why, despite logging out, I was still pulling FB user id on the client side.
Update: used to do setSession( NULL ), which was wrong… not sure how I didn’t notice that. Anyway, destroySession works now. My apologies.