Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Re: Relationship between IIS Sessions and ASP.NET Sessions?

Reply
Thread Tools

Re: Relationship between IIS Sessions and ASP.NET Sessions?

 
 
Ken Cox [Microsoft MVP]
Guest
Posts: n/a
 
      08-08-2003
It seems to me that sessions are part of ASP and ASP.NET and that they just use
IIS as a vehicle for fetching and sending the memory-based cookie that helps
implement sessions.

That said, ASP sessions are isolated from ASP.NET sessions but I've seen some
references to ways of letting them reach out to each other.

Ken

"Luther Miller" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
I couldn't find specific information in the documentation, but some
experimenting has lead me to believe that one may disbaled Sessions in IIS
and still be able to maintain default-style sessions in ASP.NET. This leads
me to believe that ASP.NET's session handling is completely isolated from
IIS Sessions. Is this true? Are there any documents that discuss this in
detail?



 
Reply With Quote
 
 
 
 
Luther Miller
Guest
Posts: n/a
 
      08-08-2003
Ken,

I did some testing after I posted this message. I set my IE settings
for cookies to Always Prompt (even session cookies) to see what was
going on. I disabled sessions in IIS completely and then launched an
ASP.NET application that uses sessions. It saved a cookie with ASP_NET
in the name (or was it ASPNET - I don't remember exactly), but it was
NOT IIS's session cookie name. Also, the ASP.NET application's
sessions continued to work fine. This all came up because we noticed
that upping IIS's session timeout had no effect on the ASP.NET
application - but upping it in the web.config did work.

Of course, when I turned IIS sessions back on, I didn't get any new
cookies that were the usual IIS/ASP cookie, and I have no explanation
for that.

In any case, the conclusion I draw is that ASP.NET's session
management is completely independent of IIS altogether - it sets its
own cookies, uses its own storage mechanisms, etc. (I've read that you
can restart IIS and not lose ASP.NET session data, but I haven't tried
this.)

I'd like to find this confirmed somewhere, though.

Cheers,
Luther


"Ken Cox [Microsoft MVP]" <(E-Mail Removed)> wrote in message news:<#(E-Mail Removed)>...
> It seems to me that sessions are part of ASP and ASP.NET and that they just use
> IIS as a vehicle for fetching and sending the memory-based cookie that helps
> implement sessions.
>
> That said, ASP sessions are isolated from ASP.NET sessions but I've seen some
> references to ways of letting them reach out to each other.
>
> Ken
>
> "Luther Miller" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> I couldn't find specific information in the documentation, but some
> experimenting has lead me to believe that one may disbaled Sessions in IIS
> and still be able to maintain default-style sessions in ASP.NET. This leads
> me to believe that ASP.NET's session handling is completely isolated from
> IIS Sessions. Is this true? Are there any documents that discuss this in
> detail?

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cookieless Sessions (Sessions Without Cookies) and Security scottymo ASP .Net Security 3 09-29-2006 11:00 PM
Relationship between IIS security and .NET AuthenticationManager Manny Vellon ASP .Net Security 8 03-08-2006 07:07 AM
SQL Server 2000 question: What's the relationship between users and logins Leonard Martin MCSD 0 12-05-2005 09:15 PM
What relationship between cookie and ticket expiration? =?Utf-8?B?QmlsbCBCb3Jn?= ASP .Net 2 12-23-2004 07:27 AM
Relationship between Mozilla, Firefox and Thunderbird Lionel B. Dyck Firefox 6 07-19-2004 09:14 AM



Advertisments