I need my application set a cookie so that the user must not login every time. I have decided for a 365 days cookie. The cookie seems to work only in localhost and not when