Using connect-flash for redirect data transmission