App: make session last insertedId as flash session