example of using sessions in legacy apps versus cloud apps