Adding session and application php
merging changes