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

[eluser]defunct[/eluser]
Thank you for posting that, however my problem is more checking if a user is logged in at the top of my controller:

Code:
<?php
class Files extends Controller {

    function files()
    {
        parent::Controller();
        
        $this->load->library('DX_Auth');
        $this->load->orm('file');
        $this->load->helper('form');
        
        // Ensure user is logged in
        if (!$this->dx_auth->is_logged_in())  
        {  
            // Redirect to login page
            redirect('/auth/login/', 'refresh');
        }
    }

I can't seem to pass the session id properly from the flash to ensure the user is logged in. If I remove my if statement above, it works fine of course and posts.

Any ideas?


Messages In This Thread
Using SWFUpload + Sessions + upload class, how I did it. - by El Forum - 03-22-2009, 01:54 PM



Theme © iAndrew 2016 - Forum software by © MyBB