added some attributes to the struct of session entry, and changes relative to it.