created cookies and phpsessionsid in sg.php , now put all the sessions part inside the session.class.php