[eluser]Christophe28[/eluser]
And it works! :-)
First I post the encrypted cookie to the controller (photos/upload) without setting any post_parameters in JavaScript (but using swfupload.cookies.js)
Then I catch the encrypted cookie in the controller, decode it and get the user_data from the sessions database using the session_id from the users cookie.
And there it is without modifying or extending the sessions class :-)
Code:
// catch the encrypted cookie from POST
$enc_cookie = $this->input->post('my_sess_cook');
// decode the encrypted cookie
$cookie = $this->encrypt->decode($enc_cookie);
$session = unserialize($cookie);
$this->load->model('sessions_model');
$session_info = $this->sessions_model->get_session_info($session['session_id']);
// unserialize the user_data which was send back from the database
$user_data = unserialize($session_info->user_data);
// tada
$username = $user_data['username'];
Glad it works!
Thx for all the help!
Christophe