
 Re: Logout After Picture Uploading + 2nd Problem Read More 
			I'm newbie in PHP coding but when I did these changes:
album_upload.php original part of code (at end):
    if ($thiscat['cat_approval'] == 0 && count($upload_errors) == 0)
    {
        if (album_is_debug_enabled() == false)
        {
            $template->assign_vars(array(
                'META' => '<meta http-equiv="refresh" content="3;url=' . append_sid(album_append_uid("album_cat.$phpEx?cat_id=$cat_id")) . '">'
                )
            );
        }
    }
    if ($album_user_id == ALBUM_PUBLIC_GALLERY)
    {
        $message .= "<br /><br />" . sprintf($lang['Click_return_category'], "<a href="" . append_sid(album_append_uid("album_cat.$phpEx?cat_id=$cat_id")) . "">", "</a>");
    }
    else
    {
        $message .= "<br /><br />" . sprintf($lang['Click_return_personal_gallery'], "<a href="" . append_sid(album_append_uid("album_cat.$phpEx?cat_id=$cat_id")) . "">", "</a>");
    }
    $message .= "<br /><br />" . sprintf($lang['Click_return_album_index'], "<a href="" . append_sid(album_append_uid("album.$phpEx")) . "">", "</a>");
 
New part of code:
    if ($album_user_id == ALBUM_PUBLIC_GALLERY)
    {
      if ($thiscat['cat_approval'] == 0 && count($upload_errors) == 0)
      {
          if (album_is_debug_enabled() == false)
          {
              $template->assign_vars(array(
                  'META' => '<meta http-equiv="refresh" content="3;url=' . append_sid(album_append_uid("album_cat.$phpEx?cat_id=$cat_id")) . '">'
                  )
              );
          }
      }
        $message .= "<br /><br />" . sprintf($lang['Click_return_category'], "<a href="" . append_sid(album_append_uid("album_cat.$phpEx?cat_id=$cat_id")) . "">", "</a>");
    }
    else
    {
      if ($thiscat['cat_approval'] == 0 && count($upload_errors) == 0)
      {
          if (album_is_debug_enabled() == false)
          {
              $template->assign_vars(array(
                  'META' => '<meta http-equiv="refresh" content="3;url=' . append_sid(album_append_uid("album.$phpEx")) . '">'
                  )
              );
          }
      }
        $message .= "<br /><br />" . sprintf($lang['Click_return_personal_gallery'], "<a href="" . append_sid(album_append_uid("album.$phpEx")) . "">", "</a>");
    }
    $message .= "<br /><br />" . sprintf($lang['Click_return_album_index'], "<a href="" . append_sid(album_append_uid("album.$phpEx")) . "">", "</a>");
 
I simply moved that code for redirection inside that if clause with two different statements 
 
Same changes I did in album_delete.php:
Original:
    $template->assign_vars(array(
        'META' => '<meta http-equiv="refresh" content="3;url=' . append_sid(album_append_uid("album_cat.$phpEx?cat_id=$cat_id")) . '">')
    );
    if ($album_user_id == ALBUM_PUBLIC_GALLERY)
    {
        $message .= "<br /><br />" . sprintf($lang['Click_return_category'], "<a href="" . append_sid(album_append_uid("album_cat.$phpEx?cat_id=$cat_id")) . "">", "</a>");
    }
    else
    {
        $message .= "<br /><br />" . sprintf($lang['Click_return_personal_gallery'], "<a href="" . append_sid(album_append_uid("album.$phpEx")) . "">", "</a>");
    }
    $message .= "<br /><br />" . sprintf($lang['Click_return_album_index'], "<a href="" . append_sid(album_append_uid("album.$phpEx")) . "">", "</a>");
 
New:
    if ($album_user_id == ALBUM_PUBLIC_GALLERY)
    {
      $template->assign_vars(array(
          'META' => '<meta http-equiv="refresh" content="3;url=' . append_sid(album_append_uid("album_cat.$phpEx?cat_id=$cat_id")) . '">')
      );
        $message .= "<br /><br />" . sprintf($lang['Click_return_category'], "<a href="" . append_sid(album_append_uid("album_cat.$phpEx?cat_id=$cat_id")) . "">", "</a>");
    }
    else
    {
      $template->assign_vars(array(
          'META' => '<meta http-equiv="refresh" content="3;url=' . append_sid(album_append_uid("album.$phpEx")) . '">')
      );
        $message .= "<br /><br />" . sprintf($lang['Click_return_personal_gallery'], "<a href="" . append_sid(album_append_uid("album.$phpEx")) . "">", "</a>");
    }
    $message .= "<br /><br />" . sprintf($lang['Click_return_album_index'], "<a href="" . append_sid(album_append_uid("album.$phpEx")) . "">", "</a>");
 
PS: during my tests it's working fine without Logout problem 
