Can my software application maintain state when switching from HTTP (non-secure) to HTTPS (secure) protocol?