473,503 Members | 12,791 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.
Nov 19 '05 #1
2 1693
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
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.


Nov 19 '05 #2
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" <ba****@NOSPAMdevelop.com> wrote in message
news:30**********************@msnews.microsoft.com ...
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
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.


Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
3563
by: Jeff Johnson | last post by:
I'm using forms authentication to protect a subfolder within my site. I've got it working fine except for two issues: (1) When I do a RedirectFromLogin page I have to put a cookie path ("/"...
2
4748
by: George Durzi | last post by:
When you call FormsAuthentication.SignOut(), is the FormsAuthentication cookie supposed to be destroyed automatically? I'm creating my FormsAuthentication cookie by doing: HttpCookie oCookie =...
0
1803
by: Ed West | last post by:
Hello This SignOut code is not working, any ideas? TIA. public class logout : System.Web.UI.Page { private void Page_Load(object sender, System.EventArgs e) { FormsAuthentication.SignOut();...
2
1805
by: Grant Merwitz | last post by:
Hi, i am using forms authentication in an ASP.NET project I am setting the Forms authentication cookie by using: FormsAuthentication.RedirectFromLoginPage(UserName.Text, false); Now when i...
4
8306
by: Matthias S. | last post by:
Hi there, I've created an application which is using Forms-based authentification. My Login-Button event handler looks somewhat like this: // validate the input, etc... // sUserName holds now...
9
2477
by: Patrick Olurotimi Ige | last post by:
When i add the following code below to a userControl it doesn't fire. Any ideas? Sub SignOut(ByVal objSender As Object, ByVal objArgs As EventArgs) FormsAuthentication.SignOut()...
3
4881
by: David | last post by:
Hi all, I am having a slight issue with FormsAuthentication. I need to authenticate a user and while the page is still being processed, need to work with that authenticated user. I have set up...
3
2739
by: Mark Olbert | last post by:
FormsAuthentication.SignOut() removes the authorization ticket from a user (and the user's roles), but does not change the user's identity. I need to be able to either revert the user to the...
2
5276
by: parez | last post by:
Hi ALl, I had problem with FormsAuthentication.SignOut(). It wasnt working. Looked arround and saw a lot of posts and different solutions to the problem. And some how (i dont nkow what...
0
7212
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7098
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7364
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7017
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7470
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5026
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3186
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3174
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
405
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.