
Signature
______________________________
Şenol Akbulak
Hi Senol,
As for your problem, two things should be noticed:
1. For IE browser, it'll start a new session if we launch a new IE windows
by creating a new IE instance rather than derived one from existing IE
window(e.g CTRL+N or ues "File->New->Windows" menu in an existing IE
window). In the latter case, the new windows will share the original
windows(opener )'s session.
2. For cookie, there are generally two kinds of cookies: session cookie and
persistent cookie(non-session). Session cookie's lifecycle is as long as
the browser window which associated with that session, when all those
windows associated with that session is closed , the corresponding session
cookie is also destroyed. for persistent cookie, it'll be persited in the
client computer's cookie storage event when all IE windows are closed. and
next, when user open IE to navigate that site again, the persisted cookie
will be associated by browser again.
ASP.NET Session State use a session cookie to identify sessionId(if not in
cookieless mode). However for formsauthentication, it provide both session
cookie or persistent cookie for the authentication ticket. So for your
scenario, you should choose session cookie as the Formsauthentication's
Authenticate ticket's cookie type so that when user (specific to a session)
close all the associated windows, the formsauthentication's ticket will
also be destroyed as well as the sessionid cookie.
For example, the following code just generate the authenticated user's
authenticate ticket as non-persistent cookie(session cookie)
System.Web.Security.FormsAuthentication.RedirectFromLoginPage("username",fal
se);
Hope helps. Thanks,
Steven Cheng
Microsoft Online Support

Signature
Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
--------------------
| Thread-Topic: using Session with FormsAuthentication
| thread-index: AcXZUSbOu3noMGBDRw+bxpHlItQY+w==
| X-WBNR-Posting-Host: 81.214.84.153
| From: "=?Utf-8?B?xZ5lbm9sIEFrYnVsYWs=?=" <senolakbulak@newsgroup.nospam>
| References: <08BE12EC-EDCA-486C-997E-CCFFB172E865@microsoft.com>
<OctMS5U2FHA.3588@TK2MSFTNGP15.phx.gbl>
| Subject: Re: using Session with FormsAuthentication
| Date: Tue, 25 Oct 2005 03:45:01 -0700
[quoted text clipped - 13 lines]
| Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGXA03.phx.gbl
| Xref: TK2MSFTNGXA01.phx.gbl
microsoft.public.dotnet.framework.aspnet:133675
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
[quoted text clipped - 51 lines]
| > Antonio Fontes
| > http://www.futureblogs.net/antonio
Şenol Akbulak - 26 Oct 2005 15:28 GMT
Hi Steven;
I found my answer in your reply.
Thank you very much.

Signature
______________________________
Şenol Akbulak
> Hi Senol,
>
[quoted text clipped - 130 lines]
> | > Antonio Fontes
> | > http://www.futureblogs.net/antonio
Steven Cheng[MSFT] - 27 Oct 2005 01:50 GMT
You're welcome Senol,
Good luck!
Steven Cheng
Microsoft Online Support

Signature
Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
--------------------
| Thread-Topic: using Session with FormsAuthentication
| thread-index: AcXaOXll/4gAWG5TRtiPEHfdloGTIA==
| X-WBNR-Posting-Host: 81.214.84.153
| From: "=?Utf-8?B?xZ5lbm9sIEFrYnVsYWs=?=" <senolakbulak@newsgroup.nospam>
| References: <08BE12EC-EDCA-486C-997E-CCFFB172E865@microsoft.com>
<OctMS5U2FHA.3588@TK2MSFTNGP15.phx.gbl>
<3090E9D9-51F2-45FB-9F53-9EFB65E52950@microsoft.com>
<kHgrfzc2FHA.3936@TK2MSFTNGXA01.phx.gbl>
| Subject: Re: using Session with FormsAuthentication
| Date: Wed, 26 Oct 2005 07:28:03 -0700
[quoted text clipped - 13 lines]
| Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGXA03.phx.gbl
| Xref: TK2MSFTNGXA01.phx.gbl
microsoft.public.dotnet.framework.aspnet:133965
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
[quoted text clipped - 33 lines]
| > For example, the following code just generate the authenticated user's
| > authenticate ticket as non-persistent cookie(session cookie)
System.Web.Security.FormsAuthentication.RedirectFromLoginPage("username",fal
| > se);
| >
[quoted text clipped - 99 lines]
| > | > Antonio Fontes
| > | > http://www.futureblogs.net/antonio