[RESOLVED] SimpleLoginSecure - User doesn't stay logged in - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22) +--- Thread: [RESOLVED] SimpleLoginSecure - User doesn't stay logged in (/showthread.php?tid=35383) |
[RESOLVED] SimpleLoginSecure - User doesn't stay logged in - El Forum - 10-27-2010 [eluser]Unknown[/eluser] Hello, I can't get SimpleLoginSecure to work properly. User doesn't stay logged in more than one server request. I'm only trying to hide admin dashboard from reqular users with no luck. When I log I see message I'm logged in and a link to my dashboard. When I try to click the link I get new session id and log out automatically which isn't what I wanted. Any help with this? Session library is loaded automatically and I'm not using database to store sessions. auth.php controller. Echos are only there for testing purposes. Code: <?php I tried ErkanaAuth 2.0a and it seems to has same problem with session. Isn't Codeigniter 1.7.2's session library compatible with PHP Version 5.2.13? RESOLVED: The problem was pretty simple after all. I had wrong url at $config['cookie_domain'] setting. Works now! |