[Solved] Setting up a user redirect |
[eluser]CroNiX[/eluser]
because if the session variable doesn't exist, session returns boolean false, and trim(false) is an empty string. So you should be using === comparisons when checking session to see if value exists so it checks the variables data TYPE in addition to its value. Code: if ($this->CI->session->userdata('user_id')) { would not pass your check if the user id is 0, even though the user exists in session, so that's not a good check. It might not matter here with this example, but it will with others. Code: if ($this->CI->session->userdata('user_id') !== FALSE) { Also, if you allow Code: $this->CI->db->escape(md5($password)) https://crackstation.net/ https://www.freerainbowtables.com/tables/ http://project-rainbowcrack.com/table.htm |
Messages In This Thread |
[Solved] Setting up a user redirect - by El Forum - 08-29-2014, 08:13 PM
[Solved] Setting up a user redirect - by El Forum - 08-30-2014, 12:57 AM
[Solved] Setting up a user redirect - by El Forum - 08-30-2014, 09:28 AM
[Solved] Setting up a user redirect - by El Forum - 08-30-2014, 04:00 PM
[Solved] Setting up a user redirect - by El Forum - 08-30-2014, 07:32 PM
[Solved] Setting up a user redirect - by El Forum - 08-30-2014, 07:32 PM
[Solved] Setting up a user redirect - by El Forum - 08-30-2014, 11:30 PM
[Solved] Setting up a user redirect - by El Forum - 08-31-2014, 03:11 AM
|