Session flash data

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

[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.

[eluser]Michael Wales[/eluser]
This feature is not available with CI’s Session library.
Unless you are using the SVN release.

Im using
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 ??

[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().

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...

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.