Where would be the best place to use a SESSION variable?

3.20K viewsGeneral
0

I want to capture the $post_id created when a question is successfully written into the DB (at the end of the function process_ask_form() ). I think it would be best to store as a session variable, but where would I put session_start() for this? At the beginning of process-form.php? Or at the beginning of anspress-question-answer.php?