updated main.php
updated session