I have the configuration for forms authentication as given at end of this post, which enforces absolute expiration and not sliding expiration.
Question: How would I extend a user session programatically using code-behind (C#)?
If I were using sliding expiration, then I could simply make an ajax request and the session would be automatically extended if more than half of forms authentication timeout had passed.
I am thinking I would have to create a new forms authentication ticket when absolute expiration is being used and then increase its expiration by a further 20 minutes from now, but not sure if there is another better way of doing this.
<authentication mode="Forms">
<forms name Go to the complete details ...