Session errors fix

Fixed the errors from calling session_start() multiple times.