Session data storing and fetching fails in Chrome <p>The site's form has to use obfuscated names for account and password input fields. So CodeIgniter's controller generates obfuscated names (by <code>strtolower(random_string('alpha', '12'))</code>) each time it makes a form and stores them (<code>$fields_name</code> array) in session (originally <code>flashdata</code>, now in <code>tempdata</code>) to retrieve them upon the following/next <code>POST</code> request with user data (account and password values). The log writes empty <code>$this-&gt;input-&gt;post($fields_name['account'])</code> and <code>$this-&gt;input-&gt;post($fields_name['password'])</code> since they can't be properly fetched from session. </p> <p>The form works normally (properly storing obfuscated names in session and recovers them back next request) in FireFox, Safary, yet <strong>fails in Chrome</strong>!!! IE makes each second request to work.</p> <p>I've set normal input names (<code>acc</code> and <code>pass</code>) for debugging purposes. </p> <p>I've joggled with 3 session data types: <code>flashdata</code>, <code>userdata</code> and <code>tempdata</code>. <a href="https://www.codeigniter.com/user_guide/libraries/sessions.html#how-do-sessions-work" rel="nofollow noreferrer">Docs</a>. </p> <h2>Controller to generate and save name fields in session (in debug mode):</h2> <pre><code>public function index() { // upon POST if ($this-&gt;input-&gt;server('REQUEST_METHOD') === 'POST') { echo '&lt;h4&gt;In POST:&lt;h4&gt;&lt;pre&gt; $this-&gt;session-&gt;&lt;b&gt;flashdata&lt;/b&gt;[fields_name]: '; print_r($this-&gt;session-&gt;flashdata('fields_name')); echo '&lt;br&gt; $this-&gt;session-&gt;&lt;b&gt;userdata&lt;/b&gt;[fields_name]: '; print_r($this-&gt;session-&gt;userdata('fields_name')); echo '&lt;br&gt; $this-&gt;session-&gt;&lt;b&gt;tempdata&lt;/b&gt;[fields_name]: '; print_r($this-&gt;session-&gt;tempdata()); echo '&lt;/pre&gt;'; //$fields_name = $this-&gt;session-&gt;flashdata('fields_name'); $fields_name = $this-&gt;session-&gt;tempdata('fields_name'); echo "&lt;pre&gt; fields_name from session af", print_r($fields_name, true); echo PHP_EOL; echo "&lt;/pre&gt;"; $this-&gt;form_validation-&gt;set_rules($fields_name['account'], '', 'required|is_natural'); $this-&gt;form_validation-&gt;set_rules($fields_name['password'], '', 'required|min_length[8]'); if ($this-&gt;form_validation-&gt;run()) { $this-&gt;accounts_model-&gt;unset_account_session_data(); echo 'Form is valid. To auth now...'; /* auth performing here */ exit; } else { log_activity('login', 'wrong validation - ' . $this-&gt;input-&gt;post($fields_name['account'])); echo 'failed $this-&gt;form_validation-&gt;run()'; exit; $this-&gt;session-&gt;set_flashdata('error_message', $this-&gt;lang-&gt;line('messages_wrong_clint_id_or_password')); redirect(lang_url()); } } if ($this-&gt;session-&gt;userdata('client_logged_in') === true) { redirect(lang_url('accounts/lists')); } $fields_name = array( 'account' =&gt; 'acc', //strtolower(random_string('alpha', '12')), 'password' =&gt; 'pass' // strtolower(random_string('alpha', '12')) ); $this-&gt;session-&gt;set_flashdata('fields_name', $fields_name); $this-&gt;session-&gt;set_userdata('fields_name', $fields_name); $this-&gt;session-&gt;set_tempdata('fields_name', $fields_name, 300); echo '&lt;pre&gt;$fields_name array: '; print_r($fields_name); echo '&lt;br&gt;before opening view - $this-&gt;session-&gt;&lt;b&gt;flashdata&lt;/b&gt;[fields_name]: '; print_r($this-&gt;session-&gt;flashdata()); echo '&lt;br&gt;before opening view - $this-&gt;session-&gt;&lt;b&gt;userdata&lt;/b&gt;[fields_name]: '; print_r($this-&gt;session-&gt;userdata()); echo '&lt;br&gt;before opening view - $this-&gt;session-&gt;&lt;b&gt;tempdata&lt;/b&gt;[fields_name]: '; print_r($this-&gt;session-&gt;tempdata()); echo '&lt;/pre&gt;&lt;/b&gt;'; $this-&gt;view-&gt;set('data', array( 'fields_name' =&gt; $fields_name, )); $this-&gt;view-&gt;render('homepage2'); } </code></pre> <h2>View with input names taken from the data passed into the view:</h2> <pre><code>&lt;input type="text" name="&lt;?php echo $data['fields_name']['account']; ?&gt;" &gt; &lt;input type="password" name="&lt;?php echo $data['fields_name']['password']; ?&gt;" </code></pre> <h2>See the outputs in FF</h2> <p><a href="https://i.stack.imgur.com/TKWlJ.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/TKWlJ.jpg" alt="enter image description here"></a> <a href="https://i.stack.imgur.com/44VYS.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/44VYS.jpg" alt="enter image description here"></a></p> <h2>See the outputs in Chrome:</h2> <p><a href="https://i.stack.imgur.com/UvK87.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/UvK87.jpg" alt="enter image description here"></a> <a href="https://i.stack.imgur.com/dOelt.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/dOelt.jpg" alt="enter image description here"></a></p>