creativeimpact Posted December 3, 2008 Share Posted December 3, 2008 Does anyone know if and how you can execute code when a session ends? thanks in advance. Link to comment https://forums.phpfreaks.com/topic/135367-execute-code-when-session-ends/ Share on other sites More sharing options...
rhodesa Posted December 3, 2008 Share Posted December 3, 2008 not that i'm aware of. all you can do is have a cronjob that runs periodically checking for stale sessions, then running some code if it finds one. Link to comment https://forums.phpfreaks.com/topic/135367-execute-code-when-session-ends/#findComment-705067 Share on other sites More sharing options...
GingerRobot Posted December 3, 2008 Share Posted December 3, 2008 What are you actually trying to achieve? Link to comment https://forums.phpfreaks.com/topic/135367-execute-code-when-session-ends/#findComment-705111 Share on other sites More sharing options...
creativeimpact Posted December 5, 2008 Author Share Posted December 5, 2008 I had made a simple form (email.php)to enter an email which then called (email_send.php) to send an html email to potential customer. However, after email was sent and email_send.php refreshed back to the email.php page the $_post['submit'] was still true. I solved this though.... I simply used a session variable. Link to comment https://forums.phpfreaks.com/topic/135367-execute-code-when-session-ends/#findComment-706715 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.