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. Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
GingerRobot Posted December 3, 2008 Share Posted December 3, 2008 What are you actually trying to achieve? Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.