0

My goal is to set a session variable and have it timeout after 10 min. I tried to do this with cookieless="false":

<sessionState 
      cookieless="false" 
      timeout="10">
    </sessionState>

The code above did not timeout after 10 min, I believe I did that correctly if not please let me know.

After that failure I tried to achieve my goal by setting cookieless="true":

<sessionState 
      cookieless="true" 
      timeout="10">
    </sessionState>

The code above worked, but when I deployed my application and type the url of my website I got the error: The page isn't redirecting properly. I know this is because the session ID is stored in the url but my question is, is there anyway to fix this problem using cookieless="true" or is there a better way using cookies?

Thanks in Advance

2
Contributors
2
Replies
3
Views
8 Years
Discussion Span
Last Post by bheeks
0

I found the answer.

I set Session.Timeout = 10 in the Session_Start Method in my global.asax file and I also used these settings

<sessionState
cookieless="false"
timeout="10">
</sessionState>

0

Could you pleae post a sample on how exactly you want the information to look?...EXACTLY...this will alllow everyone to see what exactly you need the repeated data to look like

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.