CodeIgniter Forums
uploadify and session - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: uploadify and session (/showthread.php?tid=27341)



uploadify and session - El Forum - 02-08-2010

[eluser]Unknown[/eluser]
hi all,

I'm using uploadify but it breaks my current session on ie7/ie8 (everything's fine on FF, safari)

I tried to restore the session but without any success.

Does anyone already used sessions with uploadify?

I understood that flash got a known bug on windows and rewrite my cookie. I just don't know how to write a propre workaround.

I did this :

Code:
public function ControllerMethod(){

   $this->session->set_userdata('session_id');
   $this->session->set_userdata('loggedadmin',TRUE);

   //list of uploadify's actions

}

I also tried to save and restore my cookie

Code:
public function ControllerMethod(){

   $Cookie  = $_POST['session'];
        
   $this->load->model('sessionmodel');
   $old = $this->sessionmodel->read($Cookie);
   $this->session->sess_destroy();
   /*        
    * list of action to recreate the cookie
    */
   //list of uploadify's actions

}

A simple

Code:
public function ControllerMethod(){

   $Cookie  = $_POST['session'];
   $this->session->set_userdata('session_id',$Cookie);
   $this->session->set_userdata('loggedadmin',TRUE);    
  
   //list of uploadify's actions

}
doesn't work either.

I don't have any clue on what to do. Theses sessions issues are a bit to hard to understand for me.

Thanks in advance if anyone got an idea.


uploadify and session - El Forum - 02-08-2010

[eluser]Unknown[/eluser]
Ok i found a topic which solve my problem : http://ellislab.com/forums/viewthread/77044/

Sorry for posting it took me time to clearly identify my problem.