473,396 Members | 1,871 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

session expiration

Hello all,

Here is an interesting question about the asp.net session cookie in an
application with forms authentication. In my web.config I have set both the
session and forms authentication timeout value to be the same with sliding
expiration. My question is which timeout value is adjusted with each
browser request to the session. From what I am observing the forms
authentication timeout is being extended and not the session cookie, thus I
am getting a redirect to my login page.

Any ideas on what needs to be set in web.config or some where else in code
to get the desired behavior of having both timeout values extended with each
request.


Thanks in advance,

Kasumo
Jul 27 '06 #1
1 1551
Both the Session and the FormsAuth are sliding expirations. That means if
they are both set for 30 minutes, and you start a session, wait 10 minutes,
and then request a page, they both get reset to 30 minutes.
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Kasumo Morris" wrote:
Hello all,

Here is an interesting question about the asp.net session cookie in an
application with forms authentication. In my web.config I have set both the
session and forms authentication timeout value to be the same with sliding
expiration. My question is which timeout value is adjusted with each
browser request to the session. From what I am observing the forms
authentication timeout is being extended and not the session cookie, thus I
am getting a redirect to my login page.

Any ideas on what needs to be set in web.config or some where else in code
to get the desired behavior of having both timeout values extended with each
request.


Thanks in advance,

Kasumo
Jul 27 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: laredotornado | last post by:
Hello, I am having trouble with PHP 4 on Mozilla/Firefox. How do I set the expiration date (within my PHP code) for the cookie created by session_start(); I tried ...
2
by: M P | last post by:
Does anybody know the default session expiration?
3
by: windandwaves | last post by:
Hi Folk I have a site where I set a session cookie that expires in 1000 days. As part of my script,. I create a $_SESSION. Now, I am wondering, if the user closes their browser window and,...
2
by: FreeTheCode | last post by:
it seems that a session in asp.net sometimes expires before its time is supposed to expire? so for example i developed a client side that relies on a if Session("Var") > 0 then else end if ...
0
by: Vijay | last post by:
Hi, Based on the session timeout, session will be expired. Timebeing , we are manually checking in the each page, whether the session is expired, If so,we are redirecting to common session...
10
by: Anthony Williams | last post by:
Hi gang, This one looks like a bug :o( As you may or may not know, setting session management in web.config to use cookieless sessions causes the ASP.NET runtime to munge a session ID into...
11
by: Vishal | last post by:
Hello, can anybody tell me how I can extend the session expiry time? Is it done via code or via IIS? Sorry I am new and dont know about this.
5
by: Snig | last post by:
Hi guys How can I make the session in an ASP.NET application so that it NEVER EXPIRES ? thanks
18
by: Rippo | last post by:
Hi I am using role base forms authentication in asp.net and have come across a problem that I would like advice on. On a successful login a session variable is set to identify a user. This is...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.