• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
db_session and set_flashdata problem

#11
[eluser]Avatar[/eluser]
I've had this problem before. Make sure that the flash message you set gets routed directly to the controller that loads the view with the flash and not route it through another controller that redirects, since the flash is only good for one refresh. Then it won't get lost. Hope this helps. if it does multiple redirects before getting to your view you may need to set it again until it gets to your view without a refresh.

does
Code:
redirect('thiscontoller');
redirect after it gets control? if yes you may need to have this controller re-set the flash data

#12
[eluser]cwpollock[/eluser]
This is a quick note to say that I DID find an answer to what was happening.

For some reason (yet to be determined) the security level for new users was NOT being set. This caused the the security setting function of the Auth module to UNSET my session (leaving my session blank). As soon as I gave my user a valid security level it worked!

I still need to track down why the security level is not being set on new users, but I think for now I solved my issue! I'll try to blog the solution when I work it out and post a link here.

Thanks for all the suggestions!


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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