Is there any way to ensure that a particular code is executed when a session ends e.g to remove temporary files og database entries ? similar to the Session_OnEnd in the global.asa file in an asp application ?
bratbo
Recommended Answers
Jump to PostIf I'm not mistaken PHP automatically handles garbage collection and cleanup when a session ends. That is provided you haven't declared any custom session handlers using session_set_save_handler().
Jump to PostThat's interesting :)
All 7 Replies
Shorty
0
Newbie Poster
bratbo
melban
0
Newbie Poster
DanceInstructor
19
Posting Whiz
melban
0
Newbie Poster
DanceInstructor
19
Posting Whiz
thewebhostingdi
-7
Junior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.