Update index.php

updated user session script for menu bar