facebook facebook facebook facebook facebook


While programming this morning (last morning, sorry), around 7 AM, an existential question regarding sessions in PHP. The answer to it is pretty logical but it sure didn’t seem that way at that hour.

So, let’s say you have a session based authentification for your webpage and you want to log out. You would use session_destroy(); or assign the authentification variable some other values than the accepted ones. My question was: Do I have to start a session before destroying it? and the answer is yes. Although it is pretty awkard, the session has to be started to destroy it otherwise it has no effect.  I don’t know about you but this question seemed pretty funny to me and my roommate :lol: Yes, we were both working on projects until 8 AM.

On the other side of life, I will be gone from Aarhus to Hobro and some other places. I’m going to go sailing hurray :D Pics coming soon after. Take care of yourselves guys and gals.

Leave a Reply