Welcome Guest, Not a member yet? Register   Sign In
Using SWFUpload + Sessions + upload class, how I did it.
#32

[eluser]Xeoncross[/eluser]
Using that updated session class I am having trouble getting CI to find the session data in $_POST. Logging the contents of $_POST I see that "ci_session" and that data was sent to the upload page from swfupload - but the session class isn't seeing that post key.

Code:
function sess_read()
    {    
        /*
         * Workaround for flash player cookie bug:
         * Check if the cookie-value was submitted via POST
         */
        $session = $this->CI->input->post($this->sess_cookie_name);
        
        if($session === FALSE)
        {
            $sess = empty($_POST[$this->sess_cookie_name]) ? NULL : $_POST[$this->sess_cookie_name];
            log_message('error', 'post was empty for '. $this->sess_cookie_name. ' = '. $sess);
            
            // Fetch the cookie
            $session = $this->CI->input->cookie($this->sess_cookie_name);
        }
....
...

:EDIT:

Duh. I had sess_match_useragent on in my config which meant that everything was working fine - but the fact that "Shockwave Flash" != "Mozilla/5.0 Windows" meant that sessions deleted the current data.


Messages In This Thread
Using SWFUpload + Sessions + upload class, how I did it. - by El Forum - 04-04-2009, 02:09 PM



Theme © iAndrew 2016 - Forum software by © MyBB