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 formsauthentica tion.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 1702
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 formsauthentica tion.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.
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****@NOSPAMd evelop.com> wrote in message
news:30******** **************@ msnews.microsof t.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 formsauthentica tion.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. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 ("/"
works, or "/mysubdir") or else the auth cookie doesn't get set. I'd like to
know why this is necessary.
(2) When I call SignOut() the auth cookie is not removed, no matter what I
try (no how the cookie is set in the RedirectFromLogin page.
|
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 = new HttpCookie(FormsAuthentication.FormsCookieName,
sTicket);
where sTicket is an encrypted FormsAuthenticationTicket. When I create the
FormsAuthenticationTicket, I set its isPersistent property to false.
|
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();
Response.Redirect ("default.aspx");
}
....
|
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 review my trace on my page, there are two cookies created that
look identical.
When i FormsAuthentication.SignOut() they both dissappear.
Any ideas as to why two cookies are created?
|
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 the users name
FormsAuthenticationTicket ticket = new FormsAuthenticationTicket(
1, sUserName, DateTime.Now, DateTime.Now.AddMinutes(20),false,
| |
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()
Response.Redirect(Request.UrlReferrer.ToString())
End Sub
<input id="cmdSignOut" type="submit" Value="Sign Out" runat="server"
onserverclick="SignOut"
|
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 a test page as
follows...
private void Page_Load(object sender, System.EventArgs e)
{
|
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 "totally unauthenticated" state, or change his identity to a different state
after SignOut().
Unfortunately, calling SetAuthCookie() after SignOut() doesn't change the identity. It's as if once an identiy is assigned, you're
stuck with it for the...
|
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 fixed it) i got it working.
The following code changes that i made did NOT help.
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |