This forum has been moved here:
Helicon Tech Community Forum

ISAPI_Rewrite 3.0 (Forum Locked Forum Locked)
 Helicon Tech : ISAPI_Rewrite 3.0
Subject Topic: Classic ASP session loss on iis7
Message |

Joined: 11 September 2009
Posts: 8
Posted: 02 December 2011 at 2:37am

I am experiencing asp session loss on our web site and wondered if the ISAPI rewrite could be causing this? At random intervals whilst logged into the site the session will get dumped and all session variables are lost forcing the user to login again.

Our Rewrite rules are very simple and make no reference to domains

Application is running in Classic mode
Server Windows 2008, IIS7

RewriteRule ^ajax /ajax.asp [NC,L]
RewriteRule ^default.asp /default.asp [NC,L]
RewriteRule ^Home$ /default.asp [NC,L]
RewriteRule ^Admin$ /admin/default.asp [NC,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^Products/([^?/]+)/([^?/]+) /default.asp?pn=productdetails&stk=$1&pid=$2 [NC,L]
RewriteRule ^Products/([^?/]+) /default.asp?pn=products&stk=$1 [NC,L]
RewriteRule ^([^?/]+)$ /default.asp?pn=$1 [NC,L]
Back to Top

Joined: 01 October 2003
Online Status: Online
Posts: -160
Posted: 05 December 2011 at 5:08am


your rules do not concern cookies, so ISAPI_Rewrite mustn't do anything to your sessions.

Back to Top

Joined: 11 September 2009
Posts: 8
Posted: 05 December 2011 at 5:22am

OK, thanks for the reply.
I think I found the problem. IIS7 application had too many worker processes, so each was spawning a new session object and the user's browser was flipping around between them. I reduced the worker processes to 1 and all is fine again.
Back to Top

Sorry, you can NOT post a reply.
This forum has been locked by a forum administrator.

Printable version Printable version