Welcome Guest, Not a member yet? Register   Sign In
getting freakauth light login username
#3

[eluser]alectrash[/eluser]
I tried that but it will only work if it recognises you are logged in.

At moment I am making the call to the php script from the flash object which is not logged in, I therefore send the session id to flash as a variable which comes back to the php as $sent_session_data.

I then use following code to get username.

Code:
$query = $this->db->where('session_id', $sent_session_id)->get('ci_sessions');
                
  foreach($query->result() as $row)
  {
    $user_array = $row->session_data;
  }  
    
  $sess_data = explode('"', $user_array);
    
  $username = $sess_data[7];

  $filepath = "/var/uploaded_files/" . $username;


Messages In This Thread
getting freakauth light login username - by El Forum - 09-22-2008, 03:38 AM
getting freakauth light login username - by El Forum - 09-22-2008, 05:03 AM
getting freakauth light login username - by El Forum - 09-22-2008, 05:40 AM



Theme © iAndrew 2016 - Forum software by © MyBB