473,623 Members | 2,693 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Session.Timeout and Frames problem

I'm about to go nuts. I've got a VB.NET web app , utilizing frames(my 1st
mistake). One of the frames is hidden and does a behind the scenes refresh,
to keep the session alive. This works great with IIS 5.0, but when I port it
to IIS 6.0. The refresh does not reset the session. The only thing that
will work on the IIS 6.0 server, is to refresh the ENTIRE frameset. This is
not an option. Is there anything I can do to the code, or settings on IIS
6.0 to allow this to work? ps: I've already tried the 5.0 setting in 6.0.
TIA Doug
Nov 19 '05 #1
6 2503
I have three apps running on different 2003 servers with IIS 6 using this
technique without a problem, except the Java script on the hidden page does
a "Form1.submit() " every 5 minutes instead of refresh.
Something to look at as well may be the session timeout on the server.
Also browsers prior to IE 5.5 (some servicepack) could have different
sessions for each frame, so test from the same browser.
A rarity (but we had it at a customer) is if you have a shortcut and IE
opens to a "file://" URL somewhere on disk, like a Web page on a shared
network folder, rather than "http://", and there is a hyperlink on the disk
page to the Web app, then the frames had this problem (can you believe it,
but it was or maybe still is a known bug).

"Doug" <Do**@discussio ns.microsoft.co m> wrote in message
news:42******** *************** ***********@mic rosoft.com...
I'm about to go nuts. I've got a VB.NET web app , utilizing frames(my 1st
mistake). One of the frames is hidden and does a behind the scenes
refresh,
to keep the session alive. This works great with IIS 5.0, but when I port
it
to IIS 6.0. The refresh does not reset the session. The only thing that
will work on the IIS 6.0 server, is to refresh the ENTIRE frameset. This
is
not an option. Is there anything I can do to the code, or settings on
IIS
6.0 to allow this to work? ps: I've already tried the 5.0 setting in
6.0.
TIA Doug

Nov 19 '05 #2
I've got 3 frames withing the frameset, I can issue a refresh to each of
them, but unless I do a refresh on the frameset itself, boom goes the
session. I just doesn't make any sense, I'll give the submit a whirl tho.
thanks!

"Chris Botha" wrote:
I have three apps running on different 2003 servers with IIS 6 using this
technique without a problem, except the Java script on the hidden page does
a "Form1.submit() " every 5 minutes instead of refresh.
Something to look at as well may be the session timeout on the server.
Also browsers prior to IE 5.5 (some servicepack) could have different
sessions for each frame, so test from the same browser.
A rarity (but we had it at a customer) is if you have a shortcut and IE
opens to a "file://" URL somewhere on disk, like a Web page on a shared
network folder, rather than "http://", and there is a hyperlink on the disk
page to the Web app, then the frames had this problem (can you believe it,
but it was or maybe still is a known bug).

"Doug" <Do**@discussio ns.microsoft.co m> wrote in message
news:42******** *************** ***********@mic rosoft.com...
I'm about to go nuts. I've got a VB.NET web app , utilizing frames(my 1st
mistake). One of the frames is hidden and does a behind the scenes
refresh,
to keep the session alive. This works great with IIS 5.0, but when I port
it
to IIS 6.0. The refresh does not reset the session. The only thing that
will work on the IIS 6.0 server, is to refresh the ENTIRE frameset. This
is
not an option. Is there anything I can do to the code, or settings on
IIS
6.0 to allow this to work? ps: I've already tried the 5.0 setting in
6.0.
TIA Doug


Nov 19 '05 #3
That didn't work. I can be working in the "main subject frame" manually
posting and requesting data, and it will still timeout

"Doug" wrote:
I'm about to go nuts. I've got a VB.NET web app , utilizing frames(my 1st
mistake). One of the frames is hidden and does a behind the scenes refresh,
to keep the session alive. This works great with IIS 5.0, but when I port it
to IIS 6.0. The refresh does not reset the session. The only thing that
will work on the IIS 6.0 server, is to refresh the ENTIRE frameset. This is
not an option. Is there anything I can do to the code, or settings on IIS
6.0 to allow this to work? ps: I've already tried the 5.0 setting in 6.0.
TIA Doug

Nov 19 '05 #4
Do you have a anti-virus program on the server? If so, disable it and test
again.

"Doug" <Do**@discussio ns.microsoft.co m> wrote in message
news:62******** *************** ***********@mic rosoft.com...
That didn't work. I can be working in the "main subject frame" manually
posting and requesting data, and it will still timeout

"Doug" wrote:
I'm about to go nuts. I've got a VB.NET web app , utilizing frames(my
1st
mistake). One of the frames is hidden and does a behind the scenes
refresh,
to keep the session alive. This works great with IIS 5.0, but when I
port it
to IIS 6.0. The refresh does not reset the session. The only thing that
will work on the IIS 6.0 server, is to refresh the ENTIRE frameset. This
is
not an option. Is there anything I can do to the code, or settings on
IIS
6.0 to allow this to work? ps: I've already tried the 5.0 setting in
6.0.
TIA Doug

Nov 19 '05 #5
Well, I switched from InProc to SQLSever mode, and that fixed the problem.
Now I have a new one. How to do clean up , if the user closes the browser.

I attached a delete trigger to the asptempstateses sion table, but, that
seems to fire everytime SQLServer checks for expired sessions.

Do you have any other suggestions, how to do cleanup, if the user closes the
browser????

TIA Doug

"Chris Botha" wrote:
Do you have a anti-virus program on the server? If so, disable it and test
again.

"Doug" <Do**@discussio ns.microsoft.co m> wrote in message
news:62******** *************** ***********@mic rosoft.com...
That didn't work. I can be working in the "main subject frame" manually
posting and requesting data, and it will still timeout

"Doug" wrote:
I'm about to go nuts. I've got a VB.NET web app , utilizing frames(my
1st
mistake). One of the frames is hidden and does a behind the scenes
refresh,
to keep the session alive. This works great with IIS 5.0, but when I
port it
to IIS 6.0. The refresh does not reset the session. The only thing that
will work on the IIS 6.0 server, is to refresh the ENTIRE frameset. This
is
not an option. Is there anything I can do to the code, or settings on
IIS
6.0 to allow this to work? ps: I've already tried the 5.0 setting in
6.0.
TIA Doug


Nov 20 '05 #6
normally a scheduled job is created sqlagent (the install should of done
this) to run the cleanup. the server is not notified when the browser
closes, so there is no notification for cleanup. the session id is stored in
a session cookie, so the browser should delete the cookie when it closes.

-- bruce (sqlwork.com)

"Doug" <Do**@discussio ns.microsoft.co m> wrote in message
news:2D******** *************** ***********@mic rosoft.com...
Well, I switched from InProc to SQLSever mode, and that fixed the problem.
Now I have a new one. How to do clean up , if the user closes the
browser.

I attached a delete trigger to the asptempstateses sion table, but, that
seems to fire everytime SQLServer checks for expired sessions.

Do you have any other suggestions, how to do cleanup, if the user closes
the
browser????

TIA Doug

"Chris Botha" wrote:
Do you have a anti-virus program on the server? If so, disable it and
test
again.

"Doug" <Do**@discussio ns.microsoft.co m> wrote in message
news:62******** *************** ***********@mic rosoft.com...
> That didn't work. I can be working in the "main subject frame"
> manually
> posting and requesting data, and it will still timeout
>
> "Doug" wrote:
>
>> I'm about to go nuts. I've got a VB.NET web app , utilizing frames(my
>> 1st
>> mistake). One of the frames is hidden and does a behind the scenes
>> refresh,
>> to keep the session alive. This works great with IIS 5.0, but when I
>> port it
>> to IIS 6.0. The refresh does not reset the session. The only thing
>> that
>> will work on the IIS 6.0 server, is to refresh the ENTIRE frameset.
>> This
>> is
>> not an option. Is there anything I can do to the code, or settings
>> on
>> IIS
>> 6.0 to allow this to work? ps: I've already tried the 5.0 setting
>> in
>> 6.0.
>> TIA Doug


Nov 20 '05 #7

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

Similar topics

4
15458
by: DavidS | last post by:
First: There are several ways to confuse one regarding session timeout. (1) web.config - <sessionState timeout="20"> (2) IIS Manager | Internet Information Services | ServerNode | Default Web Site | Properties | Configuration | Options | Enable Session State Session timeout 20 (3) within Global.asax.vb file - Session_Start subroutine can use Session.Timeout=x minutes or (4) within any web page, i.e., <web page>.aspx can use...
5
2848
by: Tim W. | last post by:
Folks. In a B2B Procurement system we've created, we got following Session-Issue: Configuration: We are using IIS 6.0 and added SQL-Based-Sessions in web.config with a timeout of 240 minutes and set them to cookieless mode. As well we added Session.Timeout=240 in asp.net-application and saved data into the session. Session-Timeout in IIS is also set to 240.
8
5483
by: bdeviled | last post by:
I am deploying to a web environment that uses load balancing and to insure that sessions persist across servers, the environment uses SQL to manage sessions. The machine.config file determines how all applications will use sessions and to insure that all application use this method, the session properties cannot be overriden. Within the sessionstate tags, the webadmin (upon my request)r emoved the property for timeout, hoping that...
17
5192
by: jensen bredal | last post by:
Hello, i'm struggling with a somehow badly understood session scenario. I provide acces to my pages based on form authentication using Session cookies. Som of my pages are supposed to be running continuously and refreshing once an hour. I there set timeout= 61 in <sessionState section and on my page it says <meta http-equiv="refresh" content="3600">. I also set timeout=120 in the <forms section of web.config to make sure
15
10982
by: dee | last post by:
Hi, What is the maximum number of minutes for Session timeout that I can specify in web.config? Thanks. Dee
2
9680
by: Rajesh.jain25 | last post by:
Hi, I am facing a problem of automatic session timeout problem and automatic session_end event fired. Case1: As I have analyzed I get to know that the default session timeout is 20 in web.config, If I reassign the session timeout at login page other than the time which is defined at web.config(20 Min.) then automatic session_end (in global.aspx.cs) event fired. Why automatic this event is fired??
3
2192
by: metsie | last post by:
Hi all, How can I set the session TimeOut from inside the Code? Also is there a way to make the session variables Expires after a number of minutes of inactivity. i.e. I want to make the session variables expires after the user stays inactive for 20 minutes. I am using ASP.net 2. Thanks in advance
4
2195
by: =?Utf-8?B?UGF1bG8gRmxvcsOqbmNpbw==?= | last post by:
Hello, I have a web application in aspx and vb.net 2003. The users are complaining about session timeout (10 - 60 minutes). My web config file is set up as: - <authentication mode="Forms"> <forms name="ACMS" loginUrl="frmLogin.aspx" path="/ACMS" protection="All"
4
8104
by: thig95 | last post by:
Hi, I've got a web application written in ASP class with VBScript. We have a home grown conctact management system for my company that our users stay active in throughout the day. My problem lies with the continued timeout we sometimes experience. I have tried just about everything to allow an 8 hour timeout for this application. I've set the session timeout to 480 in IIS (running IIS 6 on windows 2k3 SE) and i've also tried coding it in...
0
8217
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8661
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8603
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8312
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8460
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7132
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6104
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4153
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1467
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.