Welcome Guest, Not a member yet? Register   Sign In
Getting User ID from Redux Auth
#11

[eluser]Dam1an[/eluser]
[quote author="Timothy_" date="1243365063"]Dam1an, You are obviously an expert.[/quote]
If I'm an expert with code I've only spent a minute familiarising myself with, just imagine what I'm like with code I actually know Wink

Its expected to look like that in the database
if you look at how the session class works (this based on what I remember when I last looked into it, so it may be a bit off) you'll see the userdata (and flashdata) arrays get serielized at the end of the http request and written to the database, on the next httprequest, the whole string is read from the database and unserialized back into the arrays.
What this means to you, is you can call it as you would normally, i.e:
Code:
$user_id = $this->session->userdata('user_id');


Messages In This Thread
Getting User ID from Redux Auth - by El Forum - 05-24-2009, 08:35 PM
Getting User ID from Redux Auth - by El Forum - 05-25-2009, 01:23 AM
Getting User ID from Redux Auth - by El Forum - 05-25-2009, 05:13 AM
Getting User ID from Redux Auth - by El Forum - 05-25-2009, 05:19 AM
Getting User ID from Redux Auth - by El Forum - 05-25-2009, 04:18 PM
Getting User ID from Redux Auth - by El Forum - 05-25-2009, 10:35 PM
Getting User ID from Redux Auth - by El Forum - 05-26-2009, 06:08 AM
Getting User ID from Redux Auth - by El Forum - 05-26-2009, 07:46 AM
Getting User ID from Redux Auth - by El Forum - 05-26-2009, 07:53 AM
Getting User ID from Redux Auth - by El Forum - 05-26-2009, 08:11 AM
Getting User ID from Redux Auth - by El Forum - 05-26-2009, 08:16 AM
Getting User ID from Redux Auth - by El Forum - 05-26-2009, 08:21 AM
Getting User ID from Redux Auth - by El Forum - 05-26-2009, 08:26 AM
Getting User ID from Redux Auth - by El Forum - 05-27-2009, 01:45 PM
Getting User ID from Redux Auth - by El Forum - 05-27-2009, 01:53 PM
Getting User ID from Redux Auth - by El Forum - 05-27-2009, 02:15 PM



Theme © iAndrew 2016 - Forum software by © MyBB