Welcome Guest, Not a member yet? Register   Sign In
user login error
#15

[eluser]TheFuzzy0ne[/eluser]
If the $_SESSION variable is not available, there's a good chance that you haven't loaded the session class. I'd suggest you auto load it from within your autoload.php.

Also, you should not be access $_SESSION directly, you should be accessing it like this:

Code:
$this->session->set_userdata('key, 'value');

$data = $this->session->userdata('key');

This has the added advantage that if the specified key is not set, it returns FALSE, so you don't need to mess with isset().

Can you confirm what field names your 'members' table has? I'm wondering if it's not username, but user_name instead.


Messages In This Thread
user login error - by El Forum - 04-24-2009, 07:43 AM
user login error - by El Forum - 04-24-2009, 08:14 AM
user login error - by El Forum - 04-24-2009, 08:20 AM
user login error - by El Forum - 04-24-2009, 08:25 AM
user login error - by El Forum - 04-24-2009, 11:59 AM
user login error - by El Forum - 04-24-2009, 12:30 PM
user login error - by El Forum - 04-24-2009, 12:45 PM
user login error - by El Forum - 04-24-2009, 01:44 PM
user login error - by El Forum - 04-24-2009, 02:21 PM
user login error - by El Forum - 04-24-2009, 02:27 PM
user login error - by El Forum - 04-24-2009, 02:36 PM
user login error - by El Forum - 04-24-2009, 02:49 PM
user login error - by El Forum - 04-24-2009, 03:04 PM
user login error - by El Forum - 04-26-2009, 01:16 AM
user login error - by El Forum - 04-26-2009, 05:01 AM
user login error - by El Forum - 04-27-2009, 09:26 AM
user login error - by El Forum - 04-27-2009, 09:37 AM
user login error - by El Forum - 04-27-2009, 09:44 AM



Theme © iAndrew 2016 - Forum software by © MyBB