Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Question on Sessions variables

Reply
Thread Tools

Question on Sessions variables

 
 
jty202
Guest
Posts: n/a
 
      01-17-2005
1. Can I have an array of objects as sessions variable in other words
sessions array-of-objects? If so how?

2. Besides Sessions variable what else can I use to store large amount of
data temporarily thats related to the current user.
( can I use temp files? and instead of storing the large text data in a
sessions variable or arrays, I could store the temp-file names which
contains the large text data? )




 
Reply With Quote
 
 
 
 
Matt Berther
Guest
Posts: n/a
 
      01-17-2005
Hello jty202,

How long do you need to store it? If its per request, you could look at the
HttpContext.Current.Items collection.

--
Matt Berther
http://www.mattberther.com

> 1. Can I have an array of objects as sessions variable in other words
> sessions array-of-objects? If so how?
>
> 2. Besides Sessions variable what else can I use to store large amount
> of
> data temporarily thats related to the current user.
> ( can I use temp files? and instead of storing the large text data in
> a
> sessions variable or arrays, I could store the temp-file names which
> contains the large text data? )



 
Reply With Quote
 
 
 
 
Stuart A Hill
Guest
Posts: n/a
 
      01-17-2005
Hi,

A session variable can pretty much take whatever you throw at it. I'd maybe
consider creating an array of objects and putting it in a session variable,
rather than the other way around. I have never tried that before, as I try
to avoid session variables if possible.

On your second point, for years developers have been looking for an
alternative to session variables. This article discusses a method using a
guid and a database. http://www.4guysfromrolla.com/webtech/041600-2.shtml

Good luck,

Regards,

Stuart
MCSD, MCT


"jty202" <> wrote in message
news:uTOPjsN$...
> 1. Can I have an array of objects as sessions variable in other words
> sessions array-of-objects? If so how?
>
> 2. Besides Sessions variable what else can I use to store large amount of
> data temporarily thats related to the current user.
> ( can I use temp files? and instead of storing the large text data in a
> sessions variable or arrays, I could store the temp-file names which
> contains the large text data? )
>
>
>
>



 
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
Variables in multiple sessions Jacques Oberto ASP .Net 15 10-02-2009 05:42 PM
Put variables into member variables or function variables? tjumail@gmail.com C++ 9 03-23-2008 04:03 PM
Moving from ASP Sessions to Database Sessions Bookham Measures ASP General 19 08-23-2007 03:51 PM
Cookieless Sessions (Sessions Without Cookies) and Security scottymo ASP .Net Security 3 09-29-2006 11:00 PM
Re: Relationship between IIS Sessions and ASP.NET Sessions? Ken Cox [Microsoft MVP] ASP .Net 1 08-08-2003 03:22 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