asp classic - Lost ASP Session Variable IIS 6.0 to 7.5 -
i've read lot topic, don't solution. i've tried solutions community has posted, not success.
i migrating site iis 6.0 7.5. site has both asp , asp.net applications, set 2 different pools. asp.net apps work without problems.
where have problems asp applications. asp apps use app objective grant user. problem becomes when granting-user app creates session ("accepted")
variable , gets lost when redirecting. this feature working in iis 6.0
i've traced problem , confirmed error comes when redirecting.
what i've tried , checked fix problem:
session properties
- enable session state = true
- time-out: 00:20:00
- mode settings: in process
- cookie settings = use cookies
- use hosting identity form impersonation = checked
port access site: :8685
- i've checked web-gardening , it's not enabled there's 1 working process set.
i attach screen captures consider relevant
i've coded asp page shows session variable contents. before redirecting, session variable correctly created, when redirection takes place, information lost.
i attach code enterprise policy let me post:
response.write("accepted: " & session("aceptado") & "<br>") response.write ("sql: " & mysql & "<br>") response.write("accepted: " & session("aceptado") & "<br>") dim i,j j = session.contents.count response.write("session contents: " & j & "<br>") response.write("contents: <br>" ) each in session.contents response.write(i & "<br>") next response.write("isnull: " & isnull(session) & "<br>") response.write("¿aceptado? " & session("aceptado"))
with above code, result is:
the code check session status once redirect takes place is:
<%response.buffer = true %> <html> <h1>test</h1> <% dim i,j j = session.contents.count response.write("session contents: " & j & "<br>") response.write("contents: <br>" ) each in session.contents response.write(i & "<br>") next %> isnull: <%=isnull(session)%> <br> ¿aceptado?: <%=session("aceptado")%><br> incidencia : <%=session("tipoincidencia")%><br> usuario : <%=session("usuario")%> </html>
the result executing above code:
the redirection takes place between last 2 images
my workaround start ajax call every x (where x half time in wich session expires, in case 7.5min ).
it's not super clean, gets job done.
Comments
Post a Comment