codigniter session show username - 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: codigniter session show username (/showthread.php?tid=53992) |
codigniter session show username - El Forum - 08-17-2012 [eluser]shivi[/eluser] when i use session how i can show username . when one user has logged . Code: public function login_validation_credentials(){ how i can show the username in memebers page thanks very much codigniter session show username - El Forum - 08-17-2012 [eluser]Oscar Dias[/eluser] You can use Code: echo $this->session->userdata('username'); codigniter session show username - El Forum - 08-17-2012 [eluser]souri84[/eluser] Hello, Code: $data['name'] = $this->session->userdata('username'); and after, in the view : Code: if(isset($name)) echo $name; It seems to be right... Souri84 codigniter session show username - El Forum - 08-17-2012 [eluser]shivi[/eluser] okkkk now it's work good . thanks very much guys |