Forum Moderators: coopster

Message Too Old, No Replies

nuke all current sessions?

my bad programming has tainted the session data

         

whoisgregg

11:48 pm on Feb 28, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi!

I'd rather not go into the details, but is there some way to tell PHP to just forget all current session data? I mean server side, not client side.

It's no huge deal, but I don't want a tainted session to crop up later and bugger things up. So I don't mind the data loss if I could do a clean sweep.

Thanks in advance!

jatar_k

11:52 pm on Feb 28, 2008 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



just delete everything in the server dir where the sessions live

whoisgregg

2:25 pm on Feb 29, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Ahh yes, will do that this morning. Thanks! :D

I should've listened to you more closely when we talked about sessions at vegas pubcon a couple years back. I would have avoided this particular mix up. :)

jatar_k

2:28 pm on Feb 29, 2008 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



I have to admit that when good programmers do bad things it does make me laugh

I think it's because we know better and since we often do more complex things there is the possibility of much greater chaos. It also reminds me of that oops feeling I have had more than once, hehe.

coopster

4:29 pm on Feb 29, 2008 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Sheesh, I thought you were being a little rough there, jatar_k ... but then I read the subtitle and understood ;)

my bad programming has tainted the session data

That sounds so harsh. Sugar-coat it a little, nobody likes the smell of tainted data.

jatar_k

4:34 pm on Feb 29, 2008 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



how many times have we shared an "I can't believe I did that" story coop?

too many I imagine

there were times I thought I could smell the server's fear when I logged in, or maybe the sound of a Sun server crying a little at what I night fry next ;)

whoisgregg

5:08 pm on Feb 29, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Normally I'd share the details, but this time is way too embarrassing for me. Thankfully it was me who caught the problem and not a user... and that I caught it pretty quickly (within a couple days of the new code).

jatar_k

5:13 pm on Feb 29, 2008 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



good catch then :)