[eluser]Las3r[/eluser]
Some more testing pointed out that let's say I login, and it prints me the session id #1 + user + password (md5hash) for testing - this works. Then I go to another page (directly linked from the login-success page) and i echo the session_id again, however , there it's different (F5 DOES give the same (different) ID all the time), as well has no custom data the login-controller inserts during a succesful login.
What does this mean? The session ID is changing (and thus losing the username / pass). Is this because it's renewing the session? I thought that wouldn't happpen for 300 seconds...
EDIT: I changed the sess_time_to_update to 0 and the session_id continuesly changed (as expected), changed it to 7200 and it didn't change - HOWEVER this didn't change the fact that when i login and move to a 'loggedin=1'-page, it will tell me there's a DIFFERENT session_id (with the missing custom $data). In other words it SEEMS like it destroys the old session and creates a new one, but why?
I thought maybe this is because if have sessions set to auto-load, and it makes a new sessions for every page?
EDIT: Tried changing autoload.php to manual inclusion in the actual controllers - didn't make any difference..
EDIT: I tried to rule out windows OS / my local wamp setup to be the problem by uploading the code to a production server (Red hat Enterprise linux), same problem. I'm starting to think this is an error in CI...
I've worked a lot before with sessions in php (session_start(); etc), and i've never encountered anything like this before. At the moment i'm stuck and can't move on, cause i want to run DB queries based on the userID, and i can't continue developing if I don't get this working..
So please...help me out.
Erik.
p.s. I'm on a static company line (no ip changes), am using the same browser consistently (even the same tab...)