Ending a session
Posted: Thu Feb 04, 2010 3:55 am
I am using session control in PHP, but am having difficulty closing a session properly.
If I include session_destroy(); within a PHP module, I cannot access $_SESSION variables within that module. If I omit session_destroy();, I leave the session open, with the security problems this implies.
How do I get over this?
If I include session_destroy(); within a PHP module, I cannot access $_SESSION variables within that module. If I omit session_destroy();, I leave the session open, with the security problems this implies.
How do I get over this?