Get _id of inserted row and store in session

This post is old and is being closed.
Please add your own issue into a new post instead of bumping up an old post.
Also, add any code in a code block as stated in the Forum Guidelines. Explain what you’re trying to do, what works, and what doesn’t.