CodeIgniter Forums
Authlib and flashdata - 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: Authlib and flashdata (/showthread.php?tid=1982)



Authlib and flashdata - El Forum - 07-09-2007

[eluser]schnoodles[/eluser]
Hello, i am currently using Authlib on my site and it works a treat, only problem is i find that when i use Db_session and set some flashdata and then in my header i do a

if ( flashdata ) echo flashdata

This works good but i found that when i go to some other pages it still keeps the flashdata without getting rid of it so i played around and i tried adding

<?php $this->db_session->_flashdata_sweep(); ?>

into my footer but this still didnt seem to sweep all the flashdata, does anyone know how i can clear the flashdata at the bottom of every page so none of it will transfer between pages.