CodeIgniter Forums
Redirect executes controller twice - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: Redirect executes controller twice (/thread-13860.html)



Redirect executes controller twice - El Forum - 12-09-2008

[eluser]wgaffa[/eluser]
Hi

I got a bit of a head scratcher. When I redirect it seems that the controller is executed twice and during that second time my flashdata is empty.
In the attachment you it starts by saying it redirects. Sends the output to browser and then it seems to start over again.
I have used "tail -f logs/logfile" command to see the action and this happens during this one redirect.

** I Couldn't attach txt file to this post so I'm linking to a pastie
http://pastie.org/334714