'Saving session in php file and accessing them

Is it possible in the world of PHP? I want to store session in PHP file on my server , like user's email $_SESSION['email'] for 20mins or saved forever unless deleted manually when its posted. Within the 20mins , if the user submit same email again . They get redirected to thank you page. "Your email has been received" Something like that.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source