Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > about state

Reply
Thread Tools

about state

 
 
Tony Johansson
Guest
Posts: n/a
 
      01-11-2010
Hello!

If I have some reference types and some value types can all of these be
saved into a session object ?
Can you give me some guidelines or example what is appropriate to save into
a session object.

//Tony


 
Reply With Quote
 
 
 
 
Gregory A. Beamer
Guest
Posts: n/a
 
      01-11-2010
"Tony Johansson" <> wrote in
news:TXJ2n.9$:

> If I have some reference types and some value types can all of these
> be saved into a session object ?
> Can you give me some guidelines or example what is appropriate to save
> into a session object.


For the most part, I try not to store in session, as it more likely becomes
a garbage can that never gets cleaned up. But, if I do store, the idea of
value types versus reference types is not that important.

Peace and Grace,

--
Gregory A. Beamer (MVP)

Twitter: @gbworld
Blog: http://gregorybeamer.spaces.live.com

*******************************************
| Think outside the box! |
*******************************************
 
Reply With Quote
 
 
 
 
Tony Johansson
Guest
Posts: n/a
 
      01-11-2010
"Gregory A. Beamer" <> skrev i meddelandet
news:Xns9CFD835C46417gbworld@207.46.248.16...
> "Tony Johansson" <> wrote in
> news:TXJ2n.9$:
>
>> If I have some reference types and some value types can all of these
>> be saved into a session object ?
>> Can you give me some guidelines or example what is appropriate to save
>> into a session object.

>
> For the most part, I try not to store in session, as it more likely
> becomes
> a garbage can that never gets cleaned up. But, if I do store, the idea of
> value types versus reference types is not that important.
>
> Peace and Grace,
>
> --
> Gregory A. Beamer (MVP)
>
> Twitter: @gbworld
> Blog: http://gregorybeamer.spaces.live.com
>
> *******************************************
> | Think outside the box! |
> *******************************************


Can you make up something relevant that would be suitable to store in the
session object.

//Tony


 
Reply With Quote
 
Tony Johansson
Guest
Posts: n/a
 
      01-12-2010
"Mark Rae [MVP]" <> skrev i meddelandet
news:...
> "Tony Johansson" <> wrote in message
> news:2OK2n.11$...
>
>> Can you make up something relevant that would be suitable to store in the
>> session object.

>
> Something small which needs to be persisted across pages...
>
>
> --
> Mark Rae
> ASP.NET MVP
> http://www.markrae.net


Can you give an example on something small that might be suitable to save
across pages into a session object .

//Tony


 
Reply With Quote
 
Andrew Morton
Guest
Posts: n/a
 
      01-12-2010
Tony Johansson wrote:
> Can you give an example on something small that might be suitable to
> save across pages into a session object .


"ASP.NET Session State Overview"
http://msdn.microsoft.com/en-us/library/ms178581.aspx

Andrew


 
Reply With Quote
 
Patrice
Guest
Posts: n/a
 
      01-12-2010
Try :
http://www.codeproject.com/KB/aspnet...on_facade.aspx

If states are accessed this way, you'll be able to change the backend
storage pretty much at will.

--
Patrice

"Tony Johansson" <> a écrit dans le message de
groupe de discussion : kmW2n.22$...
> "Mark Rae [MVP]" <> skrev i meddelandet
> news:...
>> "Tony Johansson" <> wrote in message
>> news:2OK2n.11$...
>>
>>> Can you make up something relevant that would be suitable to store in
>>> the session object.

>>
>> Something small which needs to be persisted across pages...
>>
>>
>> --
>> Mark Rae
>> ASP.NET MVP
>> http://www.markrae.net

>
> Can you give an example on something small that might be suitable to save
> across pages into a session object .
>
> //Tony
>
>


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to serialize the session state. Please note that non-serializable objects or MarshalByRef objects are not permitted when session state mode is 'StateServer' or 'SQLServer'. Mike Larkin ASP .Net 1 05-23-2005 12:33 PM
Unable to make the session state request to the session state server Not Liking Dot Net Today ASP .Net 0 04-21-2004 11:54 AM
What is the state of state machine after power-up without reset conditions Weng Tianxiang VHDL 7 11-25-2003 06:24 PM
unable to make the session state request to the session state server shamanthakamani ASP .Net 1 11-20-2003 04:51 AM
State machine: how to stay in a state? David Lamb VHDL 1 09-15-2003 05:24 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57