stefangabos / Zebra_Session

A drop-in replacement for PHP's default session handler which stores session data in a MySQL database, providing better performance, better security and protection against session fixation and session hijacking
https://stefangabos.github.io/Zebra_Session/Zebra_Session/Zebra_Session.html
Other
172 stars 85 forks source link

Check for existing session and destroy it #9

Closed pr1ntr closed 5 years ago

pr1ntr commented 8 years ago

Was getting errors regarding sessions already existing. Implemented easy fix.

stefangabos commented 8 years ago

I am not sure about this...

Fist of all, you shouldn't have any sessions started before initializing Zebra_Session. Second, I am not sure that if, for some resons, a session is started before initializing Zebra_Session it is ok to destroy it or rather Zebra_Session should use the existing session data when initialized

pr1ntr commented 8 years ago

Yeah this may have been a bit hasty. But for some reason without us doing anything it just started to give us session already started errors.