fixed posting and messages to show URL from session cookie