normalize .php and ignore .ico
Profile and session fix