Update for flash and sessions