Connecting Tech Pros Worldwide Help | Site Map

formsauthentication.signout() problem

 
LinkBack Thread Tools Search this Thread
  #1  
Old November 19th, 2005, 07:31 AM
Nitin
Guest
 
Posts: n/a
Default formsauthentication.signout() problem

Hi,
I login to my asp.net web application from the same client machine twice,
using different credentials.
Both separate instances work fine, independant of each other.

However, when I logout from 1 browser instance, I am automatically logged
off from other instance too.

I use formsauthentication.signout() method to sign off the user/ redirect to
the login page.

Any ideas regarding what I could be doing wrong here?
Thanks for your help.



  #2  
Old November 19th, 2005, 07:33 AM
Brock Allen
Guest
 
Posts: n/a
Default Re: formsauthentication.signout() problem

I suspect your browser's sharing the cookie across both browser sessions,
so once you login the secon time, the first browser starts to connect as
the second user since it's now using that cookie.

-Brock
DevelopMentor
http://staff.develop.com/ballen


[color=blue]
> Hi,
> I login to my asp.net web application from the same client machine
> twice,
> using different credentials.
> Both separate instances work fine, independant of each other.
> However, when I logout from 1 browser instance, I am automatically
> logged off from other instance too.
>
> I use formsauthentication.signout() method to sign off the user/
> redirect to the login page.
>
> Any ideas regarding what I could be doing wrong here? Thanks for your
> help.
>[/color]



  #3  
Old November 19th, 2005, 07:37 AM
Nitin
Guest
 
Posts: n/a
Default Re: formsauthentication.signout() problem

I checked it up by debugging the application for both browser instances
simultaneously - The cookie values are separate for each browser session.

A little history about my problem -
Earlier, as soon as I logged into a second browser instance, I was logged
out of the first one.
This problem was resolved by adding -
<machineKey validationKey="AutoGenerate" decryptionKey="AutoGenerate"/>
- in the web.config.
But the logoff problem still remains.

JFI - I am storing user credential information in the cookie, to enable me
to pickup account specific information.
And the code seems to be doing all the right things.

Some thing else that I might be missing?

Nitin

"Brock Allen" <ballen@NOSPAMdevelop.com> wrote in message
news:303069632477732129901168@msnews.microsoft.com ...[color=blue]
>I suspect your browser's sharing the cookie across both browser sessions,
>so once you login the secon time, the first browser starts to connect as
>the second user since it's now using that cookie.
>
> -Brock
> DevelopMentor
> http://staff.develop.com/ballen
>
>
>[color=green]
>> Hi,
>> I login to my asp.net web application from the same client machine
>> twice,
>> using different credentials.
>> Both separate instances work fine, independant of each other.
>> However, when I logout from 1 browser instance, I am automatically
>> logged off from other instance too.
>>
>> I use formsauthentication.signout() method to sign off the user/
>> redirect to the login page.
>>
>> Any ideas regarding what I could be doing wrong here? Thanks for your
>> help.
>>[/color]
>
>
>[/color]


 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,662 network members.