Codeigniter Sessions Again. - 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: Codeigniter Sessions Again. (/showthread.php?tid=18118) |
Codeigniter Sessions Again. - El Forum - 04-26-2009 [eluser]Solarpitch[/eluser] Hey, I'm having a crazy problem with these CI sessions. Although I love using CI, the sessions can really grind my gears! I have an authentication script that will log in and user and direct them to a profile page... happy days. But if I click on a link in the page or reload it for what ever reason I get fired back to the login page again. It's almost like CI uses the session once then just discards the fact that it was set at login. Have a look at this if you get a sec... LOGIN CONTROLLER Code: <?php PROFILE CONTROLLER: Constructor Code: class Profile extends Controller { HELPER Code: // Get CodeIgniter Object Codeigniter Sessions Again. - El Forum - 04-26-2009 [eluser]jalalski[/eluser] Make sure that you have the domain name right. I had a similar situation with a site where I logged in through domain.com, but the next pages were for www.domain.com, which meant the session wasn't recognized. |