title: Refreshing a page with codeigniter after ajax click event
body: <p>I have the following php codeigniter function code which is being called by a jquery ajax function:</p>
  
  <pre><code>            $this-&gt;load-&gt;library('session');
              $this-&gt;load-&gt;helper('url');
  
                $ids = $_POST['i'];
                $message = $_POST['m'];
                var_dump($message);
                var_dump($ids);
                $sql = 'update replies set `response` = "'.$message.'" where id IN ('.implode( ',', $ids).')'; 
                echo $sql;
                R::exec($sql); // works normally to here
  
  
                redirect($this-&gt;uri-&gt;uri_string());
  </code></pre>
  
  <p>I want to refresh the page after the db insertion of 'message'. however nothing seems to happen. everything works normally including the db insertion. What am I doing wrong?</p>