Ask a Question related to ASP.NET General, Design and Development.
-
Luther Miller #1
Re: Relationship between IIS Sessions and ASP.NET Sessions?
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]" <BANSPAMken_cox@sympatico.ca> wrote in message news:<#n9kaEVXDHA.1832@TK2MSFTNGP09.phx.gbl>...> 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" <luther.miller@softagondotcom.invalid> wrote in message
> news:Onz9tcTXDHA.1744@TK2MSFTNGP12.phx.gbl...
> 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?Luther Miller Guest
-
Help with sessions
Hello, I am trying to develop a shopping cart environment and it's going well except when accessed from multiple users behind the same proxy...... -
PHP Sessions
Stephen Reid wrote: first page has _POST variables (form) second doesn't have _POST parameters, only session variables which are overwritten in... -
CGI::Sessions : Deleting expired sessions
Hi, I use CGI::Sessions to save the sessions into MySQL. The problem is, if the user just close the browser windows without logging off, I can't... -
Database sessions and file sessions
Can database sessions and file system sessions co-exist on the same server. I have 2 applications that use sessions. One uses the standard php...



Reply With Quote

