Welcome Guest, Not a member yet? Register   Sign In
Session flash data
#1

[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
#2

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

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

[eluser]cinewbie81[/eluser]
Im using http://www.derekallard.com/blog/post/enh...n-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 ??
#5

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

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




Theme © iAndrew 2016 - Forum software by © MyBB