CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums




Can Reply:  No Members Can Edit: No Online: Yes
Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.faq_frequently_asked_questions Tags:
Item Type: NewsGroup Date Entered: 7/7/2005 1:09:50 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
NR
XPoints: N/A Replies: 9 Views: 30 Favorited: 0 Favorite
10 Items, 1 Pages 1 |< << Go >> >|
ranganh
Asp.Net User
Whidbey: Tired with Sessions? - Use the new Profile property to store user information7/7/2005 1:09:50 PM

0


Hi,

All of us who write web application enforce some mechanism by which we store a user's information for the period he is accessing the application. This may be from simply storing the User's ID to say a Welcome <username> to maintaining his preferences, shopping cart etc.,

So far, the Session object has been pretty useful to accomplish this task. With Whidbey (ASP.NET 2.0), there is a new feature Profile which allows us to store per-user settings to be used throughout the application. Settings can also be stored in an anonymous profile while users are not logged in, and then migrated to a logged-in user profile at a later time.

For more information, please check my article
Whidbey: Tired with Sessions? - Use the new Profile property to store user information.

Thanks.

regards,
Harish

http://geekswithblogs.net/ranganh
GreekDeveloper
Asp.Net User
Re: Whidbey: Tired with Sessions? - Use the new Profile property to store user information7/10/2005 5:42:03 AM

0

Harish,

A rookie question that you certainly know:

I try to paste in the web.config file the following code, copied from the VWD help file:

      <profile>
        <properties>
          <add name="PostalCode" type="System.String" allowAnonymous="true" />
        </properties>
      </profile>

I immediately get an error on the add  keyword, stating that properties cannot contain a child element  because the parent element's content model is empty.

What does that mean? How can I set up a profile?

Thanks.


Old-time ASP enthusiant amazed by .net
GreekDeveloper
Asp.Net User
Re: Whidbey: Tired with Sessions? - Use the new Profile property to store user information7/12/2005 5:43:15 AM

0

I found out this is an Intellisense problem.

Features work OK.

Thanks.


Old-time ASP enthusiant amazed by .net
DatabaseAndWebA
Asp.Net User
Re: Whidbey: Tired with Sessions? - Use the new Profile property to store user information6/16/2006 12:30:21 AM

0

Can anyone confirm whether the use of Profiles, as suggested by Harish, be the solution to allowing 2 different Users to be logged on and connected to the application, from the same PC when you open a second window in IE using File/New or Ctrl-N, without interfering with each others' data?

Can anyone confirm whether this feature (SessionIDManager.CreateSessionID Method) allows the creation of a NEW Session ID, when you open a second window in IE using File/New or Ctrl-N, thereby allowing 2 different Users to be logged on and connected to the application with separately identified Session States?



Michael Holberton
Hospedaje Macha Wasi & Sacred Valley Mountain Bike Tours
Cusco Database Development and Cycling Services
http://www.machawasi.com - http://databaseservices.blogspot.com
sdghxdfg
Asp.Net User
Re: Whidbey: Tired with Sessions? - Use the new Profile property to store user information6/16/2006 6:57:33 AM

0

Hi!

this technique is good.it working fine.

thanks & regards

nani

sdghxdfg
Asp.Net User
Re: Whidbey: Tired with Sessions? - Use the new Profile property to store user information6/16/2006 7:03:32 AM

0

ok,

carry out the profile property for greater performance

jitterson
Asp.Net User
Re: Whidbey: Tired with Sessions? - Use the new Profile property to store user information6/17/2006 2:52:57 AM

0

Technieque is not bad good performance

 

Jitter Son

[email protected]

www.hitechcompanylinks.com

 

Morrigu
Asp.Net User
Re: Whidbey: Tired with Sessions? - Use the new Profile property to store user information7/13/2006 7:02:19 AM

0

I've done some testing with profile, and it seems that it hits database every time I read the properties of a profile. Doesn't this mean lots of queries for my database, if I get some info about user for most of the pages in my app?
plaztik
Asp.Net User
Re: Whidbey: Tired with Sessions? - Use the new Profile property to store user information7/14/2006 5:28:01 PM

0

Yes, Profile is particularly chatty, and does not offer the greatest performance, despite its helpfulness.
YourNoJesus
Asp.Net User
Re: Whidbey: Tired with Sessions? - Use the new Profile property to store user information8/4/2006 12:39:20 PM

0

i agree. i experienced (actually we) some delays when a lot of people where accessing the app simultaneously.. any workarounds?


If debugging is the art of removing bugs, then programming may be assumed as the art of creating them... 0.O
10 Items, 1 Pages 1 |< << Go >> >|


Free Download:




   
  Privacy | Contact Us
All Times Are GMT