![]() |
codeigniter + session problem again.. :S - 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: codeigniter + session problem again.. :S (/showthread.php?tid=23376) |
codeigniter + session problem again.. :S - El Forum - 10-08-2009 [eluser]Eren[/eluser] here is my code this is my broadcast bekle2.php page Code: if($this->broadcast_model->addbroadcast($bdata)){ and this is my broadcast_basla.php code Code: if(!$this->session->userdata('broadcastid')){ i'm sure that $bdata['broadcast_id'] is not null ![]() plz help me to fix this codeigniter + session problem again.. :S - El Forum - 10-08-2009 [eluser]imn.codeartist[/eluser] Debug your code and print if session carries the value before you redirect Code: if($this->broadcast_model->addbroadcast($bdata)){ codeigniter + session problem again.. :S - El Forum - 10-08-2009 [eluser]Colin Williams[/eluser] Look closer codeigniter + session problem again.. :S - El Forum - 10-08-2009 [eluser]Eren[/eluser] [quote author="dixcoder" date="1255057500"]Debug your code and print if session carries the value before you redirect Code: if($this->broadcast_model->addbroadcast($bdata)){ it gaves me a blank page ??? codeigniter + session problem again.. :S - El Forum - 10-08-2009 [eluser]imn.codeartist[/eluser] You have used function not correctly. Code: $this->session->set_userdata($newdata); it suppose to be Code: $this->session->set_userdata('session_name',$newdata); as you are missing out the session variable name codeigniter + session problem again.. :S - El Forum - 11-13-2009 [eluser]zovar[/eluser] Oups, posted a wrong suggestion. Sorry... |