Changed ext to php, session code