i'm using this code: but doesnt seem to work because the structure of my html file has 3 frames, a sidebar, title, and the main.
Now, the user will have two buttons, the call new sidebar. Which is only accessible if he has logged in. And the other button is log out. When the user press the call new sidebar. The sidebar will change into a user-only sidebar. Now, when the user clicks the logout button the sidebar which is only for users is still there. Is it possible to target two frames in html. Any other technique that you can recommend so that when the user logs off. There will be no other way to access the user-only sidebar.
session_start();
session_destroy();
?>