session_destroy() problem. |
[eluser]sivakarthick[/eluser]
Any body can help me to sort out this problem? I am using dx_auth login library and when I try to logout it shows following error. Severity: Warning Message: session_destroy() [function.session-destroy]: Trying to destroy uninitialized session Filename: libraries/Session.php Line Number: 111 This is my code. ---------------------------------------------------------------- $_SESSION = array(); if (ini_get("session.use_cookies")) { $params = session_get_cookie_params(); setcookie(session_name(), '', time() - 42000, $params["path"], $params["domain"], $params["secure"], $params["httponly"] ); } session_destroy(); -----------------------------------------------------------------
[eluser]John_Betong_002[/eluser]
Look in your duplicate thread. http://ellislab.com/forums/viewthread/190374/#898932
[eluser]sivakarthick[/eluser]
Still I am facing problem. Now this is the error occuring. Severity: Notice Message: A session had already been started - ignoring session_start() Filename: libraries/Session.php Line Number: 97 Thanks.
[eluser]John_Betong_002[/eluser]
session_start() and session_destroy() are PHP functions. I done a quick Google on "Trying to destroy uninitialized session " and found umpteen occurrences and possible solutions. Let me know your solution - I am off for a beer ![]() |
Welcome Guest, Not a member yet? Register Sign In |