![]() |
$this->session->userdata('user_id') returning blank [Using Uploadify] - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: $this->session->userdata('user_id') returning blank [Using Uploadify] (/showthread.php?tid=35977) |
$this->session->userdata('user_id') returning blank [Using Uploadify] - El Forum - 11-17-2010 [eluser]markanderson993[/eluser] Solved! http://ellislab.com/forums/viewthread/150550/ Edit* I should add that I am using uploadify and upload_facevide() is being called from it. Hello again Codeigniter experts! So I found a strange problem while trying to fetch session information inside a controller method: Code: function upload_facevideo() { I would always get "user id is" and no number. I know for a fact that there is a user_id field and it does fetch properly when in this context: Code: function test() { Does anybody know why this is happening? I am extremely puzzled! Thanks in advance for any help![/b]http://ellislab.com/forums/viewthread/150550/ $this->session->userdata('user_id') returning blank [Using Uploadify] - El Forum - 11-17-2010 [eluser]Dennis Rasmussen[/eluser] Session library loaded both places? They seem identical. $this->session->userdata('user_id') returning blank [Using Uploadify] - El Forum - 11-17-2010 [eluser]markanderson993[/eluser] Thanks Dennis for your quick response, The session library is auto-loaded. I just edited my first post by saying that I am using uploadify and the strange behavior only occurs from the method upload_facevide() that it calls. $this->session->userdata('user_id') returning blank [Using Uploadify] - El Forum - 11-17-2010 [eluser]markanderson993[/eluser] I believe I found a solution! http://ellislab.com/forums/viewthread/150550/ |