[eluser]haris244808[/eluser]
[quote author="TheFuzzy0ne" date="1362936211"]Are you not using the CodeIgniter Session class? If so, all of that is taken care of for you, and you shouldn't even need to be aware of the session ID. CodeIgniter stores it in the cookie for you, and extracts the userdata for that session upon each request.
If you do use the Session class, I recommend encrypting the cookie and storing the session in the database. This means that people can't steal other people's cookies and use them, and also it helps overcome the cookie data limit, as well as meaning your users don't have to send so much data every time they load a page.[/quote]
i am using session library...
but can u help me how to retrieve that ID...
I need that ID to use in another query :
ex:
SELECT * FROM files WHERE user_id = ? ;
so the "?" will be the ID i retrieve from the login.