473,748 Members | 8,367 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

State Persisted Without Session or Application -- Why ?

I'm working on a proof of concept that will ultimately be deployed on a load
balancer.
For the sake of a preliminary demonstration I created a C# object and marked
it's attributes
as Public Shared Static. I also set the EnableSessions and EnableViewState
Page directives
to false. Here's the part that stumped me :

as I was moving from page to page within the demo, I accidently realized the
data I dropped
into the C# object ( on login ) was being persisted throughout the
application. At first I thought
it was using the 1.1 framework on my local machine but it also worked on
another machine
without the framework. Does anyone know how that was happening ? I'm
hoping this data
was somehow being stored on the client browser which would make session
management really
easy, not to mention very friendly with respect to a load balancer.
Althought there was no
Javascript anywhere on the pages.

Any thoughts are appreciated.

Anthony
Nov 18 '05 #1
8 1727
Hi Anthony,
Public Shared Static
I'm no vb.net expert but I believe this is equivalent to C#'s static
keyword. If so, it means that any field members you declare using it will
have a per-type storage and not a per-instance one. For example:

public class Customer {
public static int CustomerCount;
}

You can then access Customer.Custom erCount (note the type prefix). This
variable will last as long as the type that contains it (Customer in this
case). And the type itself will surely live for the entire app life (if
you're not playing with creating new AppDomains and loading assemblies into
them). Note these static members are a feature of several languages (C#,
vb.net, etc) and not a feature of ASP.NET itself (ie. Session, Viewstate,
etc).

Does this helps?

--
Victor Garcia Aprea
Microsoft MVP | ASP.NET
Looking for insights on ASP.NET? Read my blog:
http://obies.com/vga/blog.aspx
To contact me remove 'NOSPAM'. Please post all questions to the newsgroup

"Anthony P. Mancini" <ap*@e-mancini.com> wrote in message
news:%2******** ********@TK2MSF TNGP11.phx.gbl. .. I'm working on a proof of concept that will ultimately be deployed on a load balancer.
For the sake of a preliminary demonstration I created a C# object and marked it's attributes
as Public Shared Static. I also set the EnableSessions and EnableViewState Page directives
to false. Here's the part that stumped me :

as I was moving from page to page within the demo, I accidently realized the data I dropped
into the C# object ( on login ) was being persisted throughout the
application. At first I thought
it was using the 1.1 framework on my local machine but it also worked on
another machine
without the framework. Does anyone know how that was happening ? I'm
hoping this data
was somehow being stored on the client browser which would make session
management really
easy, not to mention very friendly with respect to a load balancer.
Althought there was no
Javascript anywhere on the pages.

Any thoughts are appreciated.

Anthony

Nov 18 '05 #2
Hello Victor,

Thanks for responding. I believe we're on the same page but there
is a lot of room for misinterpretati on so I want to make sure we don't
have a disconnect before I continue down this path.

<<

these static members are a feature of several languages (C#,
vb.net, etc) and not a feature of ASP.NET itself (ie. Session, Viewstate,
etc).

I understand static members have nothing to do with ASP.NET; since I had
sessions disabled and data was being persisted I thought maybe I accidently
tapped into the webserver's memory storage somehow (I.E. Session \
Application).
I was always led to believe browser based processing was only "alive" during
the
request \ response mechanism, other than that managing state had to be done
via XML or database storage. At first glance it appears this has a lot of
potential
for managing string \ numeric data between pages. That being said I don't
understand why so many programmers wrestle with managing data persistence
between page activity. (?)
<< I believe this is equivalent to C#'s static keyword >>

This is correct, the structure you outlined below is close to what I'm
using.

<<
the type itself will surely live for the entire app life (if
you're not playing with creating new AppDomains and loading assemblies
into
them).


Not doing anything fancy, I try to keep things as simple as possible.
However I
need to understand how \ where this data is actually being stored. I need
to make
sure I'm not creating a situation where we'll need to implement sticky
sessions on
the load balancer. Also, the data has to stay unique to the user. I.E.
can't have users
overwriting each other's data being stored in this fashion.

Thanks for your help.

Anthony

"Victor Garcia Aprea [MVP]" <vg*@NOobiesSPA M.com> wrote in message
news:eu******** ******@TK2MSFTN GP11.phx.gbl... Hi Anthony,
Public Shared Static
I'm no vb.net expert but I believe this is equivalent to C#'s static
keyword. If so, it means that any field members you declare using it will
have a per-type storage and not a per-instance one. For example:

public class Customer {
public static int CustomerCount;
}

You can then access Customer.Custom erCount (note the type prefix). This
variable will last as long as the type that contains it (Customer in this
case). And the type itself will surely live for the entire app life (if
you're not playing with creating new AppDomains and loading assemblies

into them). Note these static members are a feature of several languages (C#,
vb.net, etc) and not a feature of ASP.NET itself (ie. Session, Viewstate,
etc).

Does this helps?

--
Victor Garcia Aprea
Microsoft MVP | ASP.NET
Looking for insights on ASP.NET? Read my blog:
http://obies.com/vga/blog.aspx
To contact me remove 'NOSPAM'. Please post all questions to the newsgroup

"Anthony P. Mancini" <ap*@e-mancini.com> wrote in message
news:%2******** ********@TK2MSF TNGP11.phx.gbl. ..
I'm working on a proof of concept that will ultimately be deployed on a

load
balancer.
For the sake of a preliminary demonstration I created a C# object and

marked
it's attributes
as Public Shared Static. I also set the EnableSessions and

EnableViewState
Page directives
to false. Here's the part that stumped me :

as I was moving from page to page within the demo, I accidently realized

the
data I dropped
into the C# object ( on login ) was being persisted throughout the
application. At first I thought
it was using the 1.1 framework on my local machine but it also worked on
another machine
without the framework. Does anyone know how that was happening ? I'm
hoping this data
was somehow being stored on the client browser which would make session
management really
easy, not to mention very friendly with respect to a load balancer.
Althought there was no
Javascript anywhere on the pages.

Any thoughts are appreciated.

Anthony


Nov 18 '05 #3
Static members would be more like application state than session state. You
won't be able to use static members for session state because (like
application state), any changes to the static member affect all clients. If
you have more than 1 client this could be a problem :)

You may want to check this article out, it talks a little bit about session
state for multi-server ASP.NET applications.
http://support.microsoft.com/default...b;en-us;815162

"Anthony P. Mancini" <ap*@e-mancini.com> wrote in message
news:ei******** *****@TK2MSFTNG P11.phx.gbl...
Hello Victor,

Thanks for responding. I believe we're on the same page but there
is a lot of room for misinterpretati on so I want to make sure we don't
have a disconnect before I continue down this path.

<<

these static members are a feature of several languages (C#,
vb.net, etc) and not a feature of ASP.NET itself (ie. Session, Viewstate,
etc).
I understand static members have nothing to do with ASP.NET; since I had
sessions disabled and data was being persisted I thought maybe I

accidently tapped into the webserver's memory storage somehow (I.E. Session \
Application).
I was always led to believe browser based processing was only "alive" during the
request \ response mechanism, other than that managing state had to be done via XML or database storage. At first glance it appears this has a lot of
potential
for managing string \ numeric data between pages. That being said I don't
understand why so many programmers wrestle with managing data persistence
between page activity. (?)
<< I believe this is equivalent to C#'s static keyword >>

This is correct, the structure you outlined below is close to what I'm
using.

<<
the type itself will surely live for the entire app life (if
you're not playing with creating new AppDomains and loading assemblies into
them).
Not doing anything fancy, I try to keep things as simple as possible.
However I
need to understand how \ where this data is actually being stored. I need
to make
sure I'm not creating a situation where we'll need to implement sticky
sessions on
the load balancer. Also, the data has to stay unique to the user. I.E.
can't have users
overwriting each other's data being stored in this fashion.

Thanks for your help.

Anthony

"Victor Garcia Aprea [MVP]" <vg*@NOobiesSPA M.com> wrote in message
news:eu******** ******@TK2MSFTN GP11.phx.gbl...
Hi Anthony,
>> Public Shared Static

I'm no vb.net expert but I believe this is equivalent to C#'s static
keyword. If so, it means that any field members you declare using it

will have a per-type storage and not a per-instance one. For example:

public class Customer {
public static int CustomerCount;
}

You can then access Customer.Custom erCount (note the type prefix). This
variable will last as long as the type that contains it (Customer in this case). And the type itself will surely live for the entire app life (if
you're not playing with creating new AppDomains and loading assemblies

into
them). Note these static members are a feature of several languages (C#,
vb.net, etc) and not a feature of ASP.NET itself (ie. Session, Viewstate, etc).

Does this helps?

--
Victor Garcia Aprea
Microsoft MVP | ASP.NET
Looking for insights on ASP.NET? Read my blog:
http://obies.com/vga/blog.aspx
To contact me remove 'NOSPAM'. Please post all questions to the newsgroup
"Anthony P. Mancini" <ap*@e-mancini.com> wrote in message
news:%2******** ********@TK2MSF TNGP11.phx.gbl. ..
I'm working on a proof of concept that will ultimately be deployed on a
load
balancer.
For the sake of a preliminary demonstration I created a C# object and

marked
it's attributes
as Public Shared Static. I also set the EnableSessions and

EnableViewState
Page directives
to false. Here's the part that stumped me :

as I was moving from page to page within the demo, I accidently
realized the
data I dropped
into the C# object ( on login ) was being persisted throughout the
application. At first I thought
it was using the 1.1 framework on my local machine but it also worked

on another machine
without the framework. Does anyone know how that was happening ? I'm
hoping this data
was somehow being stored on the client browser which would make session management really
easy, not to mention very friendly with respect to a load balancer.
Althought there was no
Javascript anywhere on the pages.

Any thoughts are appreciated.

Anthony



Nov 18 '05 #4
If you defing the following class:

Public Class MyClass
Public Shared SharedVar as Integer
Public NormalVar as Integer
End Class

This class has a total of 2 Fields.
Let's say that there are 500 people connected to your web app all at once,
and they all create an instance of this class. Now here's the
Question....The Class definition has 2 Fields defined. There are 500
instances of the class.....so... .all together, how many fields exist?

The answer?? 501!

There are 500 NormalVar fields (each instance contains that field) But for
all 500 instances, there is only 1 SharedVar Field. So if any class changes
that value, the change is seen by all instances. The limit of this scope,
by the way, is your AppDomain. So if you had 2 different web apps, each of
whic had a reference to the Assembly containing this type definition, and
each one had 500 Users, you'd have a total of 1002 fields in existence.

"Anthony P. Mancini" <ap*@e-mancini.com> wrote in message
news:%2******** ********@TK2MSF TNGP11.phx.gbl. ..
I'm working on a proof of concept that will ultimately be deployed on a load balancer.
For the sake of a preliminary demonstration I created a C# object and marked it's attributes
as Public Shared Static. I also set the EnableSessions and EnableViewState Page directives
to false. Here's the part that stumped me :

as I was moving from page to page within the demo, I accidently realized the data I dropped
into the C# object ( on login ) was being persisted throughout the
application. At first I thought
it was using the 1.1 framework on my local machine but it also worked on
another machine
without the framework. Does anyone know how that was happening ? I'm
hoping this data
was somehow being stored on the client browser which would make session
management really
easy, not to mention very friendly with respect to a load balancer.
Althought there was no
Javascript anywhere on the pages.

Any thoughts are appreciated.

Anthony

Nov 18 '05 #5
Andy,

Thanks for the response. I'm familiar with that article. We're going to
deploy a real session management solution when this application goes to
production. I was hoping my discovery could be leveraged to streamline
data persistence but it doesn't appear that will be the case.

Thank you,

Anthony

"Andy Gaskell" <pubb AT hotmail DOT com> wrote in message
news:u9******** ******@TK2MSFTN GP12.phx.gbl...
Static members would be more like application state than session state. You won't be able to use static members for session state because (like
application state), any changes to the static member affect all clients. If you have more than 1 client this could be a problem :)

You may want to check this article out, it talks a little bit about session state for multi-server ASP.NET applications.
http://support.microsoft.com/default...b;en-us;815162

"Anthony P. Mancini" <ap*@e-mancini.com> wrote in message
news:ei******** *****@TK2MSFTNG P11.phx.gbl...
Hello Victor,

Thanks for responding. I believe we're on the same page but there
is a lot of room for misinterpretati on so I want to make sure we don't
have a disconnect before I continue down this path.

<<

these static members are a feature of several languages (C#,
vb.net, etc) and not a feature of ASP.NET itself (ie. Session, Viewstate, etc).
>


I understand static members have nothing to do with ASP.NET; since I had
sessions disabled and data was being persisted I thought maybe I

accidently
tapped into the webserver's memory storage somehow (I.E. Session \
Application).
I was always led to believe browser based processing was only "alive"

during
the
request \ response mechanism, other than that managing state had to be

done
via XML or database storage. At first glance it appears this has a lot of
potential
for managing string \ numeric data between pages. That being said I don't understand why so many programmers wrestle with managing data persistence between page activity. (?)
<< I believe this is equivalent to C#'s static keyword >>

This is correct, the structure you outlined below is close to what I'm
using.

<<
the type itself will surely live for the entire app life (if
you're not playing with creating new AppDomains and loading

assemblies
into
them).
>


Not doing anything fancy, I try to keep things as simple as possible.
However I
need to understand how \ where this data is actually being stored. I need to make
sure I'm not creating a situation where we'll need to implement sticky
sessions on
the load balancer. Also, the data has to stay unique to the user. I.E.
can't have users
overwriting each other's data being stored in this fashion.

Thanks for your help.

Anthony

"Victor Garcia Aprea [MVP]" <vg*@NOobiesSPA M.com> wrote in message
news:eu******** ******@TK2MSFTN GP11.phx.gbl...
Hi Anthony,

>>> Public Shared Static
I'm no vb.net expert but I believe this is equivalent to C#'s static
keyword. If so, it means that any field members you declare using it

will have a per-type storage and not a per-instance one. For example:

public class Customer {
public static int CustomerCount;
}

You can then access Customer.Custom erCount (note the type prefix). This variable will last as long as the type that contains it (Customer in this case). And the type itself will surely live for the entire app life (if you're not playing with creating new AppDomains and loading assemblies

into
them). Note these static members are a feature of several languages (C#, vb.net, etc) and not a feature of ASP.NET itself (ie. Session, Viewstate, etc).

Does this helps?

--
Victor Garcia Aprea
Microsoft MVP | ASP.NET
Looking for insights on ASP.NET? Read my blog:
http://obies.com/vga/blog.aspx
To contact me remove 'NOSPAM'. Please post all questions to the newsgroup
"Anthony P. Mancini" <ap*@e-mancini.com> wrote in message
news:%2******** ********@TK2MSF TNGP11.phx.gbl. ..
> I'm working on a proof of concept that will ultimately be deployed on a
load
> balancer.
> For the sake of a preliminary demonstration I created a C# object
and marked
> it's attributes
> as Public Shared Static. I also set the EnableSessions and
EnableViewState
> Page directives
> to false. Here's the part that stumped me :
>
> as I was moving from page to page within the demo, I accidently
realized the
> data I dropped
> into the C# object ( on login ) was being persisted throughout the
> application. At first I thought
> it was using the 1.1 framework on my local machine but it also worked on
> another machine
> without the framework. Does anyone know how that was happening ?
I'm > hoping this data
> was somehow being stored on the client browser which would make

session > management really
> easy, not to mention very friendly with respect to a load balancer.
> Althought there was no
> Javascript anywhere on the pages.
>
> Any thoughts are appreciated.
>
> Anthony
>
>



Nov 18 '05 #6

"David Jessee" <dj*****@housto n.rr.com> wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..
If you defing the following class:

Public Class MyClass
Public Shared SharedVar as Integer
Public NormalVar as Integer
End Class

This class has a total of 2 Fields.
Let's say that there are 500 people connected to your web app all at once,
and they all create an instance of this class. Now here's the
Question....The Class definition has 2 Fields defined. There are 500
instances of the class.....so... .all together, how many fields exist?

The answer?? 501!

There are 500 NormalVar fields (each instance contains that field) But for all 500 instances, there is only 1 SharedVar Field. So if any class changes that value, the change is seen by all instances. The limit of this scope,
by the way, is your AppDomain. So if you had 2 different web apps, each of whic had a reference to the Assembly containing this type definition, and
each one had 500 Users, you'd have a total of 1002 fields in existence.

"Anthony P. Mancini" <ap*@e-mancini.com> wrote in message
news:%2******** ********@TK2MSF TNGP11.phx.gbl. ..
I'm working on a proof of concept that will ultimately be deployed on a

load
balancer.
For the sake of a preliminary demonstration I created a C# object and

marked
it's attributes
as Public Shared Static. I also set the EnableSessions and

EnableViewState
Page directives
to false. Here's the part that stumped me :

as I was moving from page to page within the demo, I accidently realized

the
data I dropped
into the C# object ( on login ) was being persisted throughout the
application. At first I thought
it was using the 1.1 framework on my local machine but it also worked on
another machine
without the framework. Does anyone know how that was happening ? I'm
hoping this data
was somehow being stored on the client browser which would make session
management really
easy, not to mention very friendly with respect to a load balancer.
Althought there was no
Javascript anywhere on the pages.

Any thoughts are appreciated.

Anthony


Nov 18 '05 #7
David,

Thanks for the reply. Unfortunately this doesn't work the way I hoped
it would. It's fine for the proof of concept but I wouldn't try to leverage
it for production, especially in a load balanced environment.

Thank you,

Anthony

"David Jessee" <dj*****@housto n.rr.com> wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..
If you defing the following class:

Public Class MyClass
Public Shared SharedVar as Integer
Public NormalVar as Integer
End Class

This class has a total of 2 Fields.
Let's say that there are 500 people connected to your web app all at once,
and they all create an instance of this class. Now here's the
Question....The Class definition has 2 Fields defined. There are 500
instances of the class.....so... .all together, how many fields exist?

The answer?? 501!

There are 500 NormalVar fields (each instance contains that field) But for all 500 instances, there is only 1 SharedVar Field. So if any class changes that value, the change is seen by all instances. The limit of this scope,
by the way, is your AppDomain. So if you had 2 different web apps, each of whic had a reference to the Assembly containing this type definition, and
each one had 500 Users, you'd have a total of 1002 fields in existence.

"Anthony P. Mancini" <ap*@e-mancini.com> wrote in message
news:%2******** ********@TK2MSF TNGP11.phx.gbl. ..
I'm working on a proof of concept that will ultimately be deployed on a

load
balancer.
For the sake of a preliminary demonstration I created a C# object and

marked
it's attributes
as Public Shared Static. I also set the EnableSessions and

EnableViewState
Page directives
to false. Here's the part that stumped me :

as I was moving from page to page within the demo, I accidently realized

the
data I dropped
into the C# object ( on login ) was being persisted throughout the
application. At first I thought
it was using the 1.1 framework on my local machine but it also worked on
another machine
without the framework. Does anyone know how that was happening ? I'm
hoping this data
was somehow being stored on the client browser which would make session
management really
easy, not to mention very friendly with respect to a load balancer.
Althought there was no
Javascript anywhere on the pages.

Any thoughts are appreciated.

Anthony


Nov 18 '05 #8
Also, the data has to stay unique to the user. I.E.
can't have users overwriting each other's data being stored in this fashion.
Static variables will be per-app and not per-user. You won't be able to use
them in the second fashion.
However I need to understand how \ where
this data is actually being stored. They will be stored in-memory. Note that each instance of the app running on
each different server will have its own storage for the static variable.

Currently the only built-in storage option that gives you per-user storage
and can be used in a webfarm scenario without sticky sessions is Session
when used in modes OutOfProc or SQLState.

--
Victor Garcia Aprea
Microsoft MVP | ASP.NET
Looking for insights on ASP.NET? Read my blog:
http://obies.com/vga/blog.aspx
To contact me remove 'NOSPAM'. Please post all questions to the newsgroup

"Anthony P. Mancini" <ap*@e-mancini.com> wrote in message
news:ei******** *****@TK2MSFTNG P11.phx.gbl...
Hello Victor,

Thanks for responding. I believe we're on the same page but there
is a lot of room for misinterpretati on so I want to make sure we don't
have a disconnect before I continue down this path.

<<

these static members are a feature of several languages (C#,
vb.net, etc) and not a feature of ASP.NET itself (ie. Session, Viewstate,
etc).
I understand static members have nothing to do with ASP.NET; since I had
sessions disabled and data was being persisted I thought maybe I

accidently tapped into the webserver's memory storage somehow (I.E. Session \
Application).
I was always led to believe browser based processing was only "alive" during the
request \ response mechanism, other than that managing state had to be done via XML or database storage. At first glance it appears this has a lot of
potential
for managing string \ numeric data between pages. That being said I don't
understand why so many programmers wrestle with managing data persistence
between page activity. (?)
<< I believe this is equivalent to C#'s static keyword >>

This is correct, the structure you outlined below is close to what I'm
using.

<<
the type itself will surely live for the entire app life (if
you're not playing with creating new AppDomains and loading assemblies into
them).
Not doing anything fancy, I try to keep things as simple as possible.
However I
need to understand how \ where this data is actually being stored. I need
to make
sure I'm not creating a situation where we'll need to implement sticky
sessions on
the load balancer. Also, the data has to stay unique to the user. I.E.
can't have users
overwriting each other's data being stored in this fashion.

Thanks for your help.

Anthony

"Victor Garcia Aprea [MVP]" <vg*@NOobiesSPA M.com> wrote in message
news:eu******** ******@TK2MSFTN GP11.phx.gbl...
Hi Anthony,
>> Public Shared Static

I'm no vb.net expert but I believe this is equivalent to C#'s static
keyword. If so, it means that any field members you declare using it

will have a per-type storage and not a per-instance one. For example:

public class Customer {
public static int CustomerCount;
}

You can then access Customer.Custom erCount (note the type prefix). This
variable will last as long as the type that contains it (Customer in this case). And the type itself will surely live for the entire app life (if
you're not playing with creating new AppDomains and loading assemblies

into
them). Note these static members are a feature of several languages (C#,
vb.net, etc) and not a feature of ASP.NET itself (ie. Session, Viewstate, etc).

Does this helps?

--
Victor Garcia Aprea
Microsoft MVP | ASP.NET
Looking for insights on ASP.NET? Read my blog:
http://obies.com/vga/blog.aspx
To contact me remove 'NOSPAM'. Please post all questions to the newsgroup
"Anthony P. Mancini" <ap*@e-mancini.com> wrote in message
news:%2******** ********@TK2MSF TNGP11.phx.gbl. ..
I'm working on a proof of concept that will ultimately be deployed on
a load
balancer.
For the sake of a preliminary demonstration I created a C# object and

marked
it's attributes
as Public Shared Static. I also set the EnableSessions and

EnableViewState
Page directives
to false. Here's the part that stumped me :

as I was moving from page to page within the demo, I accidently
realized the
data I dropped
into the C# object ( on login ) was being persisted throughout the
application. At first I thought
it was using the 1.1 framework on my local machine but it also worked

on another machine
without the framework. Does anyone know how that was happening ? I'm
hoping this data
was somehow being stored on the client browser which would make session management really
easy, not to mention very friendly with respect to a load balancer.
Althought there was no
Javascript anywhere on the pages.

Any thoughts are appreciated.

Anthony



Nov 18 '05 #9

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

Similar topics

4
3183
by: John Smith Jr. | last post by:
Could someone enlighten me what the difference between viewstate[" and session[" variables in terms of use, performance, and rule of thumb, from what I understand viewstate has overhead to it, and is passed with the page encrypted where session is stored locally in the aspnet_wp.exe process. Also, how do class member variables fit in the mix?
0
1324
by: Michael O'Brien | last post by:
I'm trying to hook in a specialized state store server into ASP.NET. I understand I can create a HttpModule and hook the events OnAcquireState and OnReleaseState. So far so good. But, it seems that the framework owns the HttpSessionState instance (HttpContext.Session) and so my state store module must use the Add, Remove and Clear methods to interact with the store. ie. on Acquire, I need to call HttpSessionState.Add to add all the...
3
3444
by: Mark | last post by:
Ok, I know that .net inherently does not share session data across asp.net projects, but is there any decent work around to this. We already have a big chunk of our application using the asp.net session object (using state service). I'd like to start breaking out our functionality into component projects, but I'd like to get this session issue worked out first. Any ideas?? I found this article , but it sounds like kind of a pain.
2
1511
by: WJ | last post by:
I am setting the Session State TimeOut to 54 minutes (20 is default) in the Web.Config. I use SQL Server to persist the session states & ID. As long as I am remaining in the web sites, I see all the data persisted from page to page. However, once I quit the browser (MS/IE 6.1) and got backin within 2 seconds, the persisted data no long existed. My impression on the "timeout" paramter is that as long as I come back to my site within the...
2
1076
by: DaveF | last post by:
What is the difference, and are there any good articles on this? -- David
0
1333
by: Daniel Malcolm | last post by:
Hi I have a site where I would like some pages to be accessed via SSL (login and payment etc) and others via regular http. However I'm not sure whether Session state can be maintained between the 2 protocols. We have SSL set up on the site so that it can be accessed via the same domain: http://www.mydomain.com/login.aspx
9
5313
by: McGeeky | last post by:
Is there a way to get a user control to remember its state across pages? I have a standard page layout I use with a header and footer as user controls. Each page uses the same layout by means of copy paste (I hear this will improve in ASP.Net 2 via master pages). When I navigate from one page to the next the header and footer user controls lose their state because they are effectively different instances of the user control. Is there...
5
548
by: Sean | last post by:
Problem with sessions I have created an application without concern for sessions. As it turns out I think that might be my undoing. What I have: I have an online quiz. I don’t need to know users or save any data. If the application crashes or user exits the program they should simply start again. Pretty basic. All interactions are stored in an array (not much going on to save to a
1
1823
by: Jeff | last post by:
I need to place a "Previous Page" link on every page within my site and a simple javascript:history.back() will not work because I need it to capture the state of the page when I left it. For example, if I have a page with some date controls so I can choose a date range and postback the page. It then displays results based on that date range. When I leave the page for another page, I would like to have the Previous Page link take them...
0
8984
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
8823
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
9312
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
6073
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4593
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4864
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3300
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2775
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2206
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.