CodeIgniter Forums
Database Session Expiration - how to delete associated entry in separate table ? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Database Session Expiration - how to delete associated entry in separate table ? (/showthread.php?tid=12955)



Database Session Expiration - how to delete associated entry in separate table ? - El Forum - 11-05-2008

[eluser]Banana Man[/eluser]
Hi all, first post here so bear with me

I am building a basket application.

I have set a basket_id to the session userdata per user and items are added to a separate entries table called basket with the basket_id to show which session it belongs to.

I was wondering if anyone could help me with an issue i am having in that when the session expires i would like that to trigger the deletion of the associated table rows in the basket table.

Any help/advice would be much appreciated