473,387 Members | 3,781 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,387 software developers and data experts.

Another State Management question

Hi all,
Is there a way to store a value that can be accessed from entire
application during a session? Basically I would want to be able to access
the value from multiple pages and/or requests and it should be removed only
when the session ends. I know I can use Application State. But that will not
allow me to save data on "per session" basis.

Thanks.
-Nikhil
Nov 18 '05 #1
3 1276
Also, I know I can use Session State. But that can expire before the user
closes the browser window. I want to be able to access the value even after
the session expires.

Thanks.
-Nikhil

"Nikhil Patel" <ni********@aol.com> wrote in message
news:O%****************@TK2MSFTNGP15.phx.gbl...
Hi all,
Is there a way to store a value that can be accessed from entire
application during a session? Basically I would want to be able to access
the value from multiple pages and/or requests and it should be removed only when the session ends. I know I can use Application State. But that will not allow me to save data on "per session" basis.

Thanks.
-Nikhil

Nov 18 '05 #2
what you are looking for is a cookie or you could write your own business
components which could handle the release mechanism and store them in
Application / Cache

--

Regards,

Hermit Dave
(http://hdave.blogspot.com)
"Nikhil Patel" <ni********@aol.com> wrote in message
news:e4**************@TK2MSFTNGP12.phx.gbl...
Also, I know I can use Session State. But that can expire before the user
closes the browser window. I want to be able to access the value even after the session expires.

Thanks.
-Nikhil

"Nikhil Patel" <ni********@aol.com> wrote in message
news:O%****************@TK2MSFTNGP15.phx.gbl...
Hi all,
Is there a way to store a value that can be accessed from entire
application during a session? Basically I would want to be able to access the value from multiple pages and/or requests and it should be removed

only
when the session ends. I know I can use Application State. But that will

not
allow me to save data on "per session" basis.

Thanks.
-Nikhil


Nov 18 '05 #3
You can use a cookie, and don't set the expiration. It expires as soon as
the browser closes.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Nikhil Patel" <ni********@aol.com> wrote in message
news:O#**************@TK2MSFTNGP15.phx.gbl...
Hi all,
Is there a way to store a value that can be accessed from entire
application during a session? Basically I would want to be able to access
the value from multiple pages and/or requests and it should be removed only when the session ends. I know I can use Application State. But that will not allow me to save data on "per session" basis.

Thanks.
-Nikhil

Nov 18 '05 #4

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

Similar topics

2
by: John A Grandy | last post by:
for high traffic public websites , what are the proven options for session-state storage & management ? is an out-of-process state-server generally preferred over a sql-server ? what are the...
1
by: John Grandy | last post by:
Could someone point me in the direction of good discussions on scalable state management solutions? Specifically, pros and cons of following strategies: Strategy 1 : temporary business-objects...
2
by: geodev | last post by:
Hello, I’m currently writing an asp.net application that will be running on a Windows XP Professional workstation utilising IIS and MSDE Database. At a later date this application will need to...
13
by: James Hunter Ross | last post by:
We love the ASP.NET "Session" concept and make good use of it. But, getting close to deployment we find we lose sessions far too often, probably due to application restarts, etc. We hope to...
3
by: cmay | last post by:
The question is: Which one of the following is NOT a valid state management tool? And the possible answers are: 1. Hidden Form Fields 2. Cookies
4
by: =?Utf-8?B?Z3V5?= | last post by:
Is this a valid approach to State Management? What I do is define a class 'State' which holds all the objects etc. that I need to store in the Session. I can then get my state object and...
0
by: kirk | last post by:
I have three events that I have created and manage with timers. Two of the timer event handlers, the last two in the code below, need to reset state management data, if the first event handler...
7
by: joproulx | last post by:
Hi, I was wondering if there was a way with Reflection to find dynamically if an object was referencing indirectly another object. A simple example would be: Object1 | --Object2 |
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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...

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.