![]() |
Tank_Auth error message when session expires - 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: Tank_Auth error message when session expires (/showthread.php?tid=25138) |
Tank_Auth error message when session expires - El Forum - 12-02-2009 [eluser]jeanv[/eluser] Hi ! i'm using Tank_Auth library, and it works very well excepted for one thing: when session (stored in database) expires there's this error message: Code: A PHP Error was encountered and the same message for line 662, and this message: Code: A PHP Error was encountered here is my code in contact controller: Code: function __construct() Anyone can help please ? the only solution i found is to put value 0 to $config['sess_expiration'] but it's not a real solution. Tank_Auth error message when session expires - El Forum - 12-02-2009 [eluser]dinhtrung[/eluser] Seems like the error appears because of setcookie() function in Sessions library, not by Tank_Auth. Because redirect() use header to redirect the page, too, and setcookie() also a header function, so this collision appears. As a replacement, you could render an auto-update page and redirect later. I usually did this: Code: function __construct() Code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> ![]() Tank_Auth error message when session expires - El Forum - 12-02-2009 [eluser]jeanv[/eluser] hi, thanks ! it's a good idea to do that, but i still have my error message... (cannot modify header...). i really don't know where it comes from. Tank_Auth error message when session expires - El Forum - 12-03-2009 [eluser]jeanv[/eluser] actually it seems that the problem comes before controller login... is that possible ? I'm getting nuts with that ! Please help ! ;-) |