![]() |
Auth system problem... - 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: Auth system problem... (/showthread.php?tid=13165) |
Auth system problem... - El Forum - 11-13-2008 [eluser]XssLab[/eluser] Hello boys, I have a problem with my simple login file... It is a logical problem. this code: Code: $session = $this->session->set_userdata('username'); setting up a 'session' username data and load my.php file in /views directory. But, in this solution, the url don't change (example login/go, and I wanna... /my/start). If I use redirect function Code: redirect() the session value can't be passed.... Thanks for reply ![]() Auth system problem... - El Forum - 11-13-2008 [eluser]Flemming[/eluser] in your controller Code: $this->session->set_userdata('username','My Name'); Code: <p>user id: <?=$this->session->userdata('username')?></p> hope that helps! ![]() |