I have a page that which add new User.
The user have file attachment option.
I created a temporary table and directory to upload file and track the user data.
The problem is the user is not yet added ,so i cannot save these files under the contact.
what i am doing is saving the files and tracking using a temp table and once the user is added moving those files under that user.
Assume that user uploaded the files and closed the page without adding user.
Then how can i delete the temp files and table values ?
can i use the browser close event ? alternatively is there anyway to do this in php [because i am new in php] ?
I am using Codeignitor - it will be very helpful if i get answer respective to CI.
Thanks in advance.