<?php if(isset($_POST['csrf'])){ if($_POST['csrf'] !== $_SESSION['csrf']){ return 'session expired!'; } }
In all Sama Samaneh university and class management system from iran :)
Sama Samaneh