Ending php sessions for debugging purposes

Posted by Bill Zimmerman on Stack Overflow See other posts from Stack Overflow or by Bill Zimmerman
Published on 2010-06-10T19:09:29Z Indexed on 2010/06/10 19:23 UTC
Read the original article Hit count: 387

Filed under:
|

Hi,

This might be very easy to do, but I haven't been able to figure it out.

Basically, I have a loosely couple web-app written in python and php. The python code uses PHP sessions (generated from the PHP app when the user logs in) to check if the user is logged in/has permission to access the given python resource.

My question is this: What is the easiest way to force all active sessions to timeout. I would like to do this for debugging purposes, to test out the python code. I tried changing the session.max_lifetime PHP variable, but that still doesn't guarantee that the session has ended and is removed.

I tried just deleting the file, but this seems to cause problems (when i refresh the php page, errors show up in my apache logs and it won't reload quickly)

Any ideas?

© Stack Overflow or respective owner

Related posts about php

Related posts about sessions