473,387 Members | 1,516 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.

Question on Sessions variables

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? )


Nov 19 '05 #1
2 943
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? )

Nov 19 '05 #2
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" <jt****@gmail.com> wrote in message
news:uT**************@TK2MSFTNGP10.phx.gbl...
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? )

Nov 19 '05 #3

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

Similar topics

9
by: Xizor | last post by:
Let's say I run a server. I have two people using the server. Bill and Joe. Bill is at address.com/bill and Joe is at address.com/joe. Let's say Joe and Bill are both using PHP with sessions on...
5
by: bryan | last post by:
Hi folks, I've got a question about sessions in PHP. I'm a *gulp* ASP coder, so please bear with me. I developed a PHP site a few months back that has a password protected entry into a...
10
by: Mark H | last post by:
Hey all-- I'm building a database and I basically need to keep out people who aren't authorized, but it's not like I need top security here. I'm just doing basic user/pass of a SQL database, and...
2
by: Amit D.Shinde | last post by:
Hello Experts.. I need some help regarding cookies and session objects and also global.asa file I am creating one cookie when a user logs in on my website. The cookie stores the login name of...
2
by: JamesB | last post by:
I am half way through making a site you can only do certain stuff if logged in to. So far, you are logged in if there is a session variable with your username, but I got thinking that presumably...
1
by: jty202 | last post by:
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...
7
by: bobmct | last post by:
Please help me clear the cobwebs out??? I pretty much use session_start(); at the start of most/all of my PHP programs and use the $_SESSION array to store control variables. This technique...
2
by: Michaelk | last post by:
Can somebody tell me how many Session variables would be considered exessive, and when they start really affect the server speed. For example on 20-30 asp pages I need to use about 200-300 session...
3
by: AlonR | last post by:
Hi, We're experiencing random user sessions losses on our web applications, and are researching for any useful information which may shed light on this problem. Environment: In our...
3
by: Jon Slaughter | last post by:
Any pitfalls or stuff I need to worry about when working with sessions? I want to write a log file and hit counter along with a login interface and I'm trying to learn this stuff. ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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,...
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.