Logging out of the ijdb - PHP & MySQL: Novice to Ninja, 6th Edition

support
book

#1

I've just finished Chapter 12 in Novice to Nina.
I've got an issue when if a user tries to logout they get the message "you have been logged out" but once they click back on any link like 'add new joke' or 'joke list' it immediately logs them back in. I downloaded the code from the github repository to compare it with my code but it seemed to do the exact same thing. Any idea of where I have gone wrong?

Github Repository: https://github.com/spbooks/phpmysql6/tree/Sessions-CheckUser-Secured


#2

Try adding session_destroy(); to the logout function. I'll update the sample code to include it.


closed #3

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.