I have set simple cookies using classic asp e.g. <%response.cookies("user")="A"%>
. As I read in this Q/A, such cookies just rely on domain name and nothing else.
I have tested when I stop and start SQL server in my server, the logged in users are signed out. Also I had same experience when I have upgraded SQL server from 2012 to 2014. (I don't use ASP session
and only set cookie to identify users).
My exact question is what parameters has the effect on the cookies lifetime? IIS? Application pool? Domain Name? SQL SERVER? IP address? and if it depends on these factors, how should I create a cookies which just relies on URL address?
EDIT after 1 year: I don't face the same problem when I restart SQL server after 1 year that I wrote this question. I mean this was not a permanent problem. It might depended on a special error as Jeroen said in comments or a special configuration on the server. So if you want to answer this question you may just guess what was the problem and I can not test it anymore to accept an answer as the exact answer to this question. With regards.