473,396 Members | 2,082 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,396 software developers and data experts.

.NET 2.0 Design Techniques

Hi, I've just joined this site after browsing for a few months, and finally bitten the bullet!
I've got a few questions as I try and get my head around the Profiling in .NET and the best way to tackle session and optimization issues I've come across.

I've designed a system where users set up their profiles and certain details need to be retained whilst the users are logged.

At first I put everything in the Profile, tested the users experience and it was fine.

But the following design issues arose:

Design 1.
I needed a facility in which users could search for other users details. Now as far as I can see, searching profiles in .NET is not very efficient and unless you create a CommonProfile instance for each user returned, the only other option is to create a SQL query that breaks down the profile string to get the details I require, neither of which seem like good efficient solutions.

Design 2.
So I decided to scrap the Profile idea and create a new table called UserProfile containing the users detail, which when the user logged in would get the required users details from the database and store them in session variables. This way the variables are available in my code when the users are logged in and its easy and efficient to search for other users details.
This worked fine until errors started occuring when a page was idle for a while. My pages perform a User.IsAuthenticated check and then access certain data through the session variables. Once authentication is passed, the session variables set to null it seems the life of the session variables seems to be shorter than that of the profile. I would of thought the two would be the same?

Design 3.
Because of the session timing out before the user, I decided to create the variables needed for the "login session" in the Profile but also keep them in the database table I created. This way when the user logs in, I set the Profile variables from those of the table and can be happy in the fact that the Profile variables aren't going to expire while the user is logged in.

(If you're still reading you deserve a medal!) So I'm currently using Design 3 which works fine, but doesn't seem to be a neat way of doing things.
Surely there's a better way of storing profile information easily accessible to when the users logged in whilst still making it easy to seach?
Also whats going on with the sessions timing out before the user?

Thanks! Steve
Apr 27 '07 #1
0 940

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Sasanka Pinidiya | last post by:
in simple words it's about versioning at record level. Example TableEmployee - EmployeeId, EmployeeName, EmployeeAddress, DepartmentId, TableDesignationMap - EmployeeId,...
1
by: Trent | last post by:
Hi, I browse sites like the CSS Zen Garden, and I often wonder how those guys get those design skills. Obviously, they probably went to school for many years and it takes lots of practice. ...
28
by: puzzlecracker | last post by:
Large scale C++ software design, by John Lakos - people any good recommendations to this book?
3
by: zlst | last post by:
Many technological innovations rely upon User Interface Design to elevate their technical complexity to a usable product. Technology alone may not win user acceptance and subsequent marketability....
4
by: scottrm | last post by:
I am fairly new to oo design and I am looking at developing an object oriented asp.net application which will be built on top of a relational database. I have read quite a bit of the theory but...
12
by: Jean-pierre Martineau | last post by:
how apply design patterns to c ?
17
by: roN | last post by:
Hi, I'm creating a Website with divs and i do have some troubles, to make it looking the same way in Firefox and IE (tested with IE7). I checked it with the e3c validator and it says: " This...
19
by: neelsmail | last post by:
Hi, I have been working on C++ for some time now, and I think I have a flair for design (which just might be only my imagination over- stretched.. :) ). So, I tried to find a design...
29
by: Brad Pears | last post by:
Here is a simple OO design question... I have a Contract class. The user can either save an existing contract or they start off fresh with a blank contract, fill in the data and then save a...
12
by: Summercoolness | last post by:
I wonder instead of just brainstorming, there probably is a very standard and a simple way to do database schema design. let's say we are doing a website. the user can go over and type in the...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
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
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...
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...
0
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...
0
tracyyun
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...
0
agi2029
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,...

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.