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

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>

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.