T
trullock
Hi,
I want to test some session timeout code ive written but im getting a
few problems.
I want to reduce the session timeout to 1min so i dont have to wait
around for 20 min to see if my code is working. Quite simply, how do i
do this?
I want the session to behave exactly as it does normally (is that
InProc mode?)
After reading a lot, i think i need something like the below. When i
stick this in the webconfig:
<sessionState mode="InProc"
stateConnectionString="tcpip=127.0.0.1:42424" cookieless="false"
timeout="1"/>
I get a new session on every request. If i set cookieless to true then
it works as i'd expect, but my code is checking for the cookie so
thats no good to me.
If i use mode = sessionstate then i still get a new session on every
request.
Starting the asp.net session state service makes no difference
Am I missing something?
Thanks
Andrew
I want to test some session timeout code ive written but im getting a
few problems.
I want to reduce the session timeout to 1min so i dont have to wait
around for 20 min to see if my code is working. Quite simply, how do i
do this?
I want the session to behave exactly as it does normally (is that
InProc mode?)
After reading a lot, i think i need something like the below. When i
stick this in the webconfig:
<sessionState mode="InProc"
stateConnectionString="tcpip=127.0.0.1:42424" cookieless="false"
timeout="1"/>
I get a new session on every request. If i set cookieless to true then
it works as i'd expect, but my code is checking for the cookie so
thats no good to me.
If i use mode = sessionstate then i still get a new session on every
request.
Starting the asp.net session state service makes no difference
Am I missing something?
Thanks
Andrew