Recent Posts

Tags

Community

Email Notifications

All Links

Blogs I Read

My Articles

JavaScript & CSS

Date & Time

SQL Server 2000/2005

Articles I Read

ASP.NET Free Controls

MVFP (Most Valuable Forum Posts)

Archives

Profile VS. Session

I would like to point out some of the similarities/differences bewteen both Session and Profile objects:

Profile:

1- Profile object is scoped to a particular user: 
    Each user of a web application automatically has his own profile.

2- Profile object is persistant:
    When you modify the stat os the profile object, the modifications are saved between visits to the website

3- Profile object uses the provider model to store information:
    By default, the contents of a user profile are automatically saved to a Microsoft SQL Server Express database
    located in App_Data of your web application.

4- Profile object is strongly typed:
    Using strongly typed properties has several advantages. For example, you  get full Microsoft IntelliSense when 
    using the Profile object in VS.NET 2005 or Visual Web Developer


Session:

1- Session object is scoped to a particular user: 
    Each user of a web application automatically has his own Session state.

2- Session object is non-persistant:
    When you add an item to the Session object, the items disappear after you leave the Web site.

3- Session object uses three different ways to be stored:
    3.1: In Process  - default
    3.2: State Server (Out of Process)
    3.3: SQL Server

4- Session object is not strongly typed:
    Sessopn object is simply a collection of items.

Hope you enjoyed the post.

Regards

Comments

simple said:

Great 4 lines !!
It's really good to read a couple of lines and quickly understand a new concept !!
great job !!

Bye from Spain
El Bruno
# June 23, 2005 4:42 PM

simple said:

I am glad you liked the post.

Regards
# June 23, 2005 4:47 PM

TrackBack said:

Profile VS. Sessionooeess
# July 22, 2005 4:04 AM

simple said:

Cool explanation of profile and session, haidar. Keep it up.
# August 10, 2005 2:31 PM

simple said:

Thanks a lot.

Regards


# August 10, 2005 2:32 PM
Leave a Comment

(required) 

(required) 

(optional)

(required)