Possible Orphaned Sessions

Talk about Hooks. Share Hooks you have made.
User avatar
Mort_Lemur
Builder
Posts: 133
Joined: Tue Jun 02, 2026 6:12 pm
Phoenix Version: v1.1.0.6
Has thanked: 67 times
Been thanked: 40 times

Possible Orphaned Sessions

Post by Mort_Lemur »

Found a scenario whilst testing a 1.1.0.6 site on php 8.2 where if you delete (via admin) a logged in customer, then the session is orphaned and site access is blocked.

If you find this (and I agree it would not happen often - if ever in real life) then add the attached hook file to: includes/hooks/shop/system/
Phoenix_Orphan_Customer_Session_Guard_1.0.zip
You do not have the required permissions to view the files attached to this post.



Join The Code Co-op to get access to your library in the Code Co-op Forum