store messages with session