i have problems in this example create script:
<% if trim(session("test_val")) = "" dim my_num randomize number = int((rnd*1000))+1 session("test_val") = number end if %> <b>session id:</b> <% response.write(session.sessionid) %><br /><br /> <b>session("test_val"):</b> <% response.write(session("test_val")) %><br /><br /> <b>session timeout:</b> <% response.write(session.timeout) %> minutes<br /><br /> <b>server software:</b> <% response.write(request.servervariables("server_software")) %><br /> <br /> <b>http_cookie:</b> <% response.write(request.servervariables("http_cookie")) %>
after each page request got different result
session id: 619163854 session("test_val"): 784 session timeout: 480 minutes server software: microsoft-iis/8.5 http_cookie: aspsessionidqqatdabc=emajhoecjikdfkkhffkigdek
and
session id: 619245915 session("test_val"): 39 session timeout: 20 minutes server software: microsoft-iis/8.5 http_cookie: aspsessionidqqatdabc=emajhoecjikdfkkhffkigdek; aspsessionidqsdtcdcb=omalhoecnlejlahgojegdnij; aspsessionidqsatdbad=efbpioeceiaaagkfojmeccom; aspsessionidqqctcaac=lfbpioecggpijainbpkidnff
and every refresh aspsessionid still appending cookies
web.config
<?xml version="1.0" encoding="utf-8"?> <configuration> <system.webserver> <rewrite> <rewritemaps> <clear /> <rewritemap name="static url rewrites"> <add key="/robots.txt" value="/robots.asp" /> <add key="/sitemap.xml" value="/sitemap.asp?format=xml" /> <add key="/sitemap.txt" value="/sitemap.asp?format=txt" /> </rewritemap> <rewritemap name="static url failures"> <add key="/robots.asp" value="/" /> <add key="/sitemap.asp" value="/" /> </rewritemap> </rewritemaps> <rules> <clear /> <rule name="static url rewrites" patternsyntax="ecmascript" stopprocessing="true"> <match url=".*" ignorecase="true" negate="false" /> <conditions> <add input="{static url rewrites:{request_uri}}" pattern="(.+)" /> </conditions> <action type="rewrite" url="{c:1}" appendquerystring="false" redirecttype="temporary" /> </rule> <rule name="static url failures" patternsyntax="ecmascript" stopprocessing="true"> <match url=".*" ignorecase="true" negate="false" /> <conditions> <add input="{static url failures:{request_uri}}" pattern="(.+)" /> </conditions> <action type="customresponse" statuscode="404" substatuscode="0" /> </rule> <rule name="prevent rewriting static files" patternsyntax="wildcard" stopprocessing="true"> <match url="*" /> <conditions> <add input="{request_filename}" matchtype="isfile" /> </conditions> <action type="none" /> </rule> </rules> </rewrite> <defaultdocument> <files> <remove value="default.aspx" /> <remove value="iisstart.htm" /> <remove value="index.html" /> <remove value="index.htm" /> <remove value="default.asp" /> <remove value="default.htm" /> <add value="index.asp" /> </files> </defaultdocument> <directorybrowse enabled="false" /> <httperrors errormode="detailedlocalonly" defaultpath="d:\err.html"> <remove statuscode="401" substatuscode="-1" /> <remove statuscode="403" substatuscode="-1" /> <remove statuscode="404" substatuscode="-1" /> <remove statuscode="405" substatuscode="-1" /> <remove statuscode="406" substatuscode="-1" /> <remove statuscode="412" substatuscode="-1" /> <remove statuscode="500" substatuscode="-1" /> <remove statuscode="501" substatuscode="-1" /> <remove statuscode="502" substatuscode="-1" /> </httperrors> <urlcompression dostaticcompression="false" dodynamiccompression="false" /> <httpprotocol> <customheaders> <remove name="x-powered-by" /> </customheaders> </httpprotocol> <security> <requestfiltering> <requestlimits maxallowedcontentlength="4290000000" /> </requestfiltering> </security> </system.webserver> <system.web> <sessionstate mode="off" /> </system.web> </configuration>
i have 1 app pool why:
- session timeouts changed?
- aspsessionid multiplying?
https://msdn.microsoft.com/en-us/library/h6bb9cz9(v=vs.71).aspx
please change
<system.web> <sessionstate mode="off" /> </system.web>
or delete section
Comments
Post a Comment