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:

  1. 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
  2. port access site: :8685

  3. i've checked web-gardening , it's not enabled there's 1 working process set.

i attach screen captures consider relevant

asp settingssession state settingsasp pool settings


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:

session correctly created

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:

test page

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

Popular posts from this blog

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -