CodeIgniter Forums
method or function called twice but only with one browser - 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: method or function called twice but only with one browser (/thread-56666.html)



method or function called twice but only with one browser - El Forum - 01-10-2013

[eluser]GabrieleMartino[/eluser]
Hello everybody,

I have a function in my method 'enter'

Code:
$this->chats_model->add_message(...);

called twice with Mozilla or 1 with others browser. It should be executed once instead I have two records

in the database. With Chromium and Konqueror works fine.

Thanks for help


method or function called twice but only with one browser - El Forum - 01-10-2013

[eluser]GabrieleMartino[/eluser]
I found the solution on another thread,

anyway it was to put the tag

Code:
<meta http-equiv="Content-Type" c charset=utf-8" />

At top of his page.