session_destroy() not removing row from table.
Posted: Tue Mar 09, 2004 11:52 pm
Hello
sessoin_start() works fine. I use session_set_save_handler() to store in mysql db. This is in login.php. All the session functions are in login .php. The table gets one new row. The last line on this page redirects it some other page - MemberPage.php
I know the session id by giving $PHPSESSID. In this page there is a link to lohout.php which contains session_destroy(); but unfortunately it does not get destroyed and the row still remains in the table. The session_close() etc are in login.php. It has the delete fn to delete the row in mysql db. Even if I include that code in logout it still does not log out. It does not give an error but givesw a warning.
Pl help
Thanks
Anjanesh
sessoin_start() works fine. I use session_set_save_handler() to store in mysql db. This is in login.php. All the session functions are in login .php. The table gets one new row. The last line on this page redirects it some other page - MemberPage.php
I know the session id by giving $PHPSESSID. In this page there is a link to lohout.php which contains session_destroy(); but unfortunately it does not get destroyed and the row still remains in the table. The session_close() etc are in login.php. It has the delete fn to delete the row in mysql db. Even if I include that code in logout it still does not log out. It does not give an error but givesw a warning.
Pl help
Thanks
Anjanesh