random IIS session timeout

前端 未结 3 1107
礼貌的吻别
礼貌的吻别 2021-01-24 02:23

I have a very strange problem and I am looking for any advice. I have a ASP.NET website running off of IIS 6 which works well for the most part. However, the sessions seem to be

3条回答
  •  悲&欢浪女
    2021-01-24 02:38

    to answer my own question:

    this link was very helpful:

    http://msdn.microsoft.com/en-us/library/ms972429.aspx

    namely this part:

    Server farm limitations. As users move from server to server in a Web server farm, their session state does not follow them. ASP session state is machine specific. Each ASP server provides its own session state, and unless the user returns to the same server, the session state is inaccessible. While network IP level routing solutions can solve such problems, by ensuring that client IPs are routed to the originating server, some ISPs choose to use a proxy load-balancing solution for their clients. Most infamous of these is AOL. Solutions such as AOL's prevent network level routing of requests to servers because the IP addresses for the requestor cannot be guaranteed to be unique.

    I switched my login/logout session to be purely cookie based (all i need for my solution)...for a more secure implimentation I think ASP.NET has built in Profile's ...as well as...ASP.NET sessions stored in your datebase...which i did not feel like researching /implimenting at the time.

    Andrew

提交回复
热议问题