use login Cookie all done

Need to fix query errors in server php.