Welcome Guest, Not a member yet? Register   Sign In
Is there any way to use the same session for Shockware (Uploadify) with Firefox/ Chrome/ Opera?
#2

[eluser]NiconPhantom[/eluser]
As workaround I am posting session id to upload controller and there I am checking the role directly from DB:

$this->db->where('session_id', $this->input->post('role'));
$query = $this->db->get('ci_sessions');
$cur_usr_data = unserialize($query->row('user_data'));

if($cur_usr_data['role'] == 'admin'){}else{$this->tank_auth->isAdmin();}

if the session which has been created before the Shockware session contains role admin, then ok, otherwise user will be rederected with auth checker. I'll add encode and decode for the $this->input->post('role') to be more secured :-)

If somebody have any idea how can I use 1 session only, please feel free to share :-)


Messages In This Thread
Is there any way to use the same session for Shockware (Uploadify) with Firefox/ Chrome/ Opera? - by El Forum - 04-18-2011, 05:44 PM



Theme © iAndrew 2016 - Forum software by © MyBB