Hi All,
The old topic: Session variables desappear.
I cannot understand it! And it's driving me crazy!!
So most of my aspx pages works just fine, but only 2 pages decide that
after they are sent to the client, they clear all the session
variables.
I even wrote a log file to see before page_load and after page_load,
the count of session.keys is 11, and even ajaxed a request from these
pages to write the same log, and I see that when the page is loaded
still 11 variables, but when entering the onload function of the page,
0 variables!
This is beyond my logic.
How can a client side SPECIFIC page, decide to clear the server side
memory?!?
Using Windows 2003 SP1, and IIS 6.0.
Am I missing something??
Your help would be greatly appriciated.
Danny 3 1309
Hi, da*******@yahoo.com wrote:
Hi All,
The old topic: Session variables desappear.
I cannot understand it! And it's driving me crazy!!
So most of my aspx pages works just fine, but only 2 pages decide that
after they are sent to the client, they clear all the session
variables.
I even wrote a log file to see before page_load and after page_load,
the count of session.keys is 11, and even ajaxed a request from these
pages to write the same log, and I see that when the page is loaded
still 11 variables, but when entering the onload function of the page,
0 variables!
This is beyond my logic.
How can a client side SPECIFIC page, decide to clear the server side
memory?!?
Using Windows 2003 SP1, and IIS 6.0.
Am I missing something??
Your help would be greatly appriciated.
Danny
Try attaching a debugger to the ASPNET process, and place a breakpoint
in the Session_End method in the Global.asax class (you may need to add
that class and that method to your project). This will help you find out
if something causes the session to terminate.
HTH,
Laurent
--
Laurent Bugnion [MVP ASP.NET]
Software engineering, Blog: http://www.galasoft-LB.ch
PhotoAlbum: http://www.galasoft-LB.ch/pictures
Support children in Calcutta: http://www.calcutta-espoir.ch
Why don't you have a look at the event log to see if the application pool is
being recycled?
--
Regards,
Alvin Bruney
------------------------------------------------------
Shameless author plug
Excel Services for .NET is coming...
OWC Black book on Amazon and www.lulu.com/owc
Professional VSTO 2005 - Wrox/Wiley
<da*******@yahoo.comwrote in message
news:11**********************@a34g2000cwb.googlegr oups.com...
Hi All,
The old topic: Session variables desappear.
I cannot understand it! And it's driving me crazy!!
So most of my aspx pages works just fine, but only 2 pages decide that
after they are sent to the client, they clear all the session
variables.
I even wrote a log file to see before page_load and after page_load,
the count of session.keys is 11, and even ajaxed a request from these
pages to write the same log, and I see that when the page is loaded
still 11 variables, but when entering the onload function of the page,
0 variables!
This is beyond my logic.
How can a client side SPECIFIC page, decide to clear the server side
memory?!?
Using Windows 2003 SP1, and IIS 6.0.
Am I missing something??
Your help would be greatly appriciated.
Danny
On Feb 6, 1:43 am, "Alvin Bruney [MVP]" <some guy without an email
addresswrote:
Why don't you have a look at the event log to see if the application pool is
being recycled?
--
Regards,
Alvin Bruney
------------------------------------------------------
Shameless author plug
Excel Services for .NET is coming...
OWC Black book on Amazon andwww.lulu.com/owc
Professional VSTO 2005 - Wrox/Wiley
<danyad...@yahoo.comwrote in message
news:11**********************@a34g2000cwb.googlegr oups.com...
Hi All,
The old topic: Session variables desappear.
I cannot understand it! And it's driving me crazy!!
So most of my aspx pages works just fine, but only 2 pages decide that
after they are sent to the client, they clear all the session
variables.
I even wrote a log file to see before page_load and after page_load,
the count of session.keys is 11, and even ajaxed a request from these
pages to write the same log, and I see that when the page is loaded
still 11 variables, but when entering the onload function of the page,
0 variables!
This is beyond my logic.
How can a client side SPECIFIC page, decide to clear the server side
memory?!?
Using Windows 2003 SP1, and IIS 6.0.
Am I missing something??
Your help would be greatly appriciated.
Danny- Hide quoted text -
- Show quoted text -
Oh my god!
This is unbelieveable!
First of all, thank you for the replies and pointers.
But, problem solved.
Resolution:
1. Enter IIS.
2. Delete the virtual directory.
3. Recreate the virtual directory.
4. Reconfigure as it was before.
5. Overwrite the new web.config with the old one.
And that's it.
It took me 40 hours to get to this resolution. UNBELIEVEABLE.
The kind of situations when you don't know if to cry or jump out the
window.
Thanks to Microsoft!
Danny This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Al Jones |
last post by:
This is a repost form the vbscript newgroup - if this isn't the appropriate
group would you point me toward one that is.
Basically, I seem to be losing session data part way though preparing an...
|
by: Lina Manjarres |
last post by:
Hello,
I have a session variable in a login page. Then I go to a form page where I
uses the ProfileID and the UserID. Then I go to a result page where I would
like to use the UserID as a filter,...
|
by: PJ |
last post by:
A particular page seems to be having issues with correctly setting Session
variables. I am setting a couple of session variables on the Page_Unload
event. While stepping through code, the...
|
by: Harry Simpson |
last post by:
I've come from the old ASP camp where session variables were not used. When
i started using ASP.NET in 2001, I started using them again because it was
ok from what I'd read.
I've been merrily...
|
by: tshad |
last post by:
I have been using the default session state (InProc) and have found that I
have been loosing my information after a period of time (normally 20
minutes).
Is there anyway to find out how much...
|
by: Alan Wang |
last post by:
Hi there,
Once my application gets complicated and complicated. I found it's really
hard to keep track of Session value I am using in my asp.net application. I
am just wondering if anyone have...
|
by: Phillip N Rounds |
last post by:
I'm writing a user control which has two states: Active & InActive. I
additionally am required that there to be only one active control per page,
and all logic has to be contained within the...
|
by: BillE |
last post by:
When a user opens a new IE browser window using File-New-Window the
integrity of an application which relies on session state is COMPLETELY
undermined. Anyone who overlooks the fact that...
|
by: BillE |
last post by:
Some ASP.NET applications use Session Variables extensively to maintain
state.
These should be re-written to use viewstate, hidden fields, querystring,
etc. instead.
This is because if a user...
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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,...
|
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...
|
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...
|
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: 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,...
|
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...
| |