로그인 없이 코드/API 호출로 사용자의 _forum_session과 _t를 생성하는 방법?

Can you back up and describe what problem having those cookies is going to solve?

What are you trying to accomplish? Are you trying to have Discourse authenticate against your app? Maybe look at DiscourseConnect - Official Single-Sign-On for Discourse (sso)?