Flash data. $ _SESSION in PHP

Hello, I wonder if there is a way to declare a variable $ _SESSION only for the next request, it is automatically deleted, as in the$ this-> session-> set_flashdata ('msg', & # 39; welcome & # 39;) CodeIgniter Framework, but using only PHP?