SimpleBlog Work Post

3:51pm – When I last left my Simpleblog, everything had broken. It thinks it’s logged in when it shouldn’t, and it throws an AJAX Error when it tries to download/display the posts. No more javascript errors though.

4:09pm – I put some console outputs into the code. For some reason the sessionID is coming out as null. Not sure how that’s happening…

4:16pm – Okay WHAT!? if(sessionID != null) is being passed even though sessionID is null. It being null is the only time that it should not pass! Debugging is one thing but I don’t know how to fix it when it’s clearly defying a logic gate. >.< 4:26pm - I've tested null comparison outside of my project and it works fine. Why doesn't it work here? It doesn't make sense! Argh. 4:28pm - if(null != null) console.log ("null != null"); doesn't print to console, so why does it evaluate as true immediately after? I have it printing sessionID to console immediately before the comparison; it's null, and yet null != null is proving true. Why? 4:33pm - It's google time. Here's something from StackOverflow... No that doesn't help. I don't see anything else that's like my problem. Shoot. I'm completely stumped, here. I'm going to give up for now and think about it, and maybe some friends will have an idea.

Tagged ,

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.