added php code into session

not sure if it's right