Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Session object
Message
From
12/08/2003 15:49:47
 
General information
Forum:
ASP.NET
Category:
Other
Title:
Miscellaneous
Thread ID:
00819538
Message ID:
00819572
Views:
14
Actually, now that I think about it a little more, I don't know why it would necessarily *have* to use a cookie when you are using SQL Server. The web server knows about the fact that you are using SQL Server, as you need to include the SessionState mode in your web.config.

Are you sure about this?

~~Bonnie



>The session object works by creating a unique key which is placed in a hash table in memory. The variable storage is then referenced by a special cookie that is sent by the browser(note this is not a javascript type cookie but a server cookie passed in the transaction headers) which identifies the client.
>
>Cookies are indeed needed for this support to work properly as a server never assumes a user identity by IP but by unique information from the browser.
>
>The session is created by the first contact with the server.
>I have done extensive work with it since I helped write our HTTP Wizard product that manages servers cookie storage and handling.
>
>
>>>>Note Session state is only maintained for browsers that support cookies<
>>
>>Session objects can also be stored to SqlServer and I believe that in that case, it doesn't matter if you have cookie support or not.
>>
>>~~Bonnie
>>
>>
>>>>Can anyone explain what the "session" object is.
>>>Here is microsofts overview:
>>>You can use the Session object to store information needed for a particular user-session. Variables stored in the Session object are not discarded when the user jumps between pages in the application; instead, these variables persist for the entire user-session.
>>>
>>>The Web server automatically creates a Session object when a Web page from the application is requested by a user who does not already have a session. The server destroys the Session object when the session expires or is abandoned.
>>>
>>>One common use for the Session object is to store user preferences. For example, if a user indicates that they prefer not to view graphics, you could store that information in the Session object. For more information on using the Session object, see Managing Sessions in the ASP Applications section.
>>>
>>>Note Session state is only maintained for browsers that support cookies
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform