Session flash data - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: Session flash data (/showthread.php?tid=5414) |
Session flash data - El Forum - 01-21-2008 [eluser]cinewbie81[/eluser] I use this $this->session->flashdata('msg', 'error') function in the session library .. It works perfectly in my local machine .. Anyway, when i upload the same source code to the server, it doesnt show me the flash message after the redirect function.. I dont get it .. It's exactly the same source code ... Anyone ?? Thanks Session flash data - El Forum - 01-21-2008 [eluser]Craig A Rodway[/eluser] Is it a typo in your code? Surely you should be using $this->session->set_flashdata('msg', 'error').Which session library are you using - OBSession, Native_Session, PHPSession... ? This feature is not available with CI's Session library. Session flash data - El Forum - 01-21-2008 [eluser]Michael Wales[/eluser] Code: This feature is not available with CI’s Session library. Session flash data - El Forum - 01-21-2008 [eluser]cinewbie81[/eluser] Im using http://www.derekallard.com/blog/post/enhanced-codeigniter-session-library/ and no , it's not a typo as it's work on my local machine... i was wondering dp I need to restart my server after upload the latest session library ? or anything else ?? Session flash data - El Forum - 01-21-2008 [eluser]Derek Allard[/eluser] If you are using that library, then I think Craig got it. To create flashdata its set_flashdata(), and to read it, its flashdata(). Session flash data - El Forum - 01-21-2008 [eluser]Sawariya[/eluser] i think you have made some mistakes in your code somewhere.. same session i am using its working good...As craig said session library not suppporting this . you have to use derek session library... |