I'm still thinking about session variables :-)
Does anyone know the detail of how session variables are actually stored?
The question I'm trying to answer is:
Is it more efficient to store and retrieve multiple short strings :
a) in multiple small session variables
b) concatenated and stored as one large session variable
c) inserted into an array and stored in a session variable
d) it's all the same. Who cares?
Keeping in mind that for this application each piece of data will be
retrieved for every page.
I've read that storing a dictionary object in a session variable is bad
ews - something to do with ending up with thread in your apartment, or
something ;-)
What I'd really like to do is create an XML object and store that in a
session variable, but I'm guessing that would be pretty inefficient unless
it had quite a lot of data in it.
Any thoughts on the above appreciated.
Drew 1 2006
"DrewM" <bo***@doesntex ist.com> wrote in message
news:el******** ******@tk2msftn gp13.phx.gbl... a) in multiple small session variables b) concatenated and stored as one large session variable c) inserted into an array and stored in a session variable d) it's all the same. Who cares?
I lean towards "D", however you should keep that amount stored as
small as you can in any method. Remember that it creates a copy of the
data for every session and the session may hang around for 20 minutes
after the person left the site. So you can eat up a lot of memory.
You could use Application Variables and would then only have one copy
of the data, however every user gets the same values which may not be
what you want.
I've read that storing a dictionary object in a session variable is
bad ews - something to do with ending up with thread in your apartment,
or something ;-)
Yes, the thread in the apartment issue is bad, especially with small
animals around :-], but seriously,..yes you do not want to do that.
--
Phillip Windell [CCNA, MVP, MCP] pw******@wandtv .com
WAND-TV (ABC Affiliate) www.wandtv.com This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: jing_li |
last post by:
Hi, you all,
I am a newbee for php and I need your help. One of my coworker and I
are both developing a webpage for our project using php. We have a
copy of the same files in different location on the server (in our own
accounts on the same machine). When I am testing both versions of our
program using the same browser (IE on Windows or Konqueror on Linux)
the session variables will mix up and only the latest selection or
options will...
|
by: Ohaya |
last post by:
Hi,
I'm trying to understand a situation where ASP seems to be "blocking" of
"queuing" requests. This is on a Win2K Advanced Server, with IIS5.
I've seen some posts (e.g.,
http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&selm=Tidy7IDbDHA.2108%40cpmsftngxa06.phx.gbl)
that indicate that ASP will queue up requests when they come in with the
same "session".
|
by: zig |
last post by:
I've posted this on alt.comp.lang.coldfusion, but is predominantly a
javascript problem:
I have a CF query which returns several rows of records. I wanted to
have a checkbox on each record of that returned query which would
allow the user to select which record to print if checked.
As the checkboxes are generated within the CF, they all have tha same
name. With the help of a fellow a.c.l.c. member, we've got the script
to a point...
|
by: Rob Conner |
last post by:
No you don't need to know Zope to help me. The whole reason I'd even
want to do this is because of Zope though. I made a Zope product, and
now want to perfect it.
some simple example code...
<code>
class User:
def View(self):
|
by: Andy Fish |
last post by:
Hi,
I am about to commence the design of what will turn out to be a fairly large
asp.net web app, and I am looking for any good advice and resources (books,
web pages) concerning how best to structure it.
I would consider myself an experienced software designer and technical
architect - I certainly know enough to know that I don't know everything,
and I'm keen to pick up on current best practice. I have architected large
server apps...
| |
by: Yul |
last post by:
Hi,
We are in the process of designing an ASP.NET app, where a user will
enter some 'Customer ID' to be queried in the database. If the ID is
valid, several stored procedures will be called to populate multiple
webpages containing customer information. There isn't a one-to-one
correlation between the stored procedure and a webpage. In other
words, a webpage may have to refer to 1 or more DataTables to populate
itself. Therefore, a...
|
by: Conformix Sales |
last post by:
Any thought about how can I stop a user from logging into the application
multiple times. I am using forms authentication.
|
by: macyp |
last post by:
I have to pass values from one aspx page to another. The controls I
have in the first page are:
a textbox, 3 drop down lists, and 2 check boxes, and a submit button.
It is a search page, and the users need not enter values in all the
controls. they can leave the textbox blank, and select values from one
drop down, or any other combinations.
I am trying to pass values with the help of session variables. But I
have multiple if else...
|
by: Carl Johansen |
last post by:
I have a big ASP website (used by several thousand car dealers) that is a
collection of lots of small and medium-sized applications. Now I want to
start adding ASP.NET applications to it. I have read Q307467 (How To Create
an ASP.NET Application from Multiple Projects for Team Development) and it
seems to work well. I understand that when you create a web project in
VS.NET, it creates an IIS application root, and that you can remove this...
|
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,...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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();...
|
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...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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...
| | |