473,799 Members | 3,080 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problem with Forms Authentication when using maultiple application with same user

1 New Member
Hello All,

I have 2 Web applications in the same IIS with the virtual directory structure below:

http://www.mydomain.co m/site1
http://www.mydomain.co m/site2

both site1 an site2 are using form authentication and creating the token further adding in cookie as below,

FormsAuthentica tion.Initialize ();
FormsAuthentica tionTicket ticket = new FormsAuthentica tionTicket(1,us ername,DateTime .Now,DateTime.N ow.AddMinutes(2 0),rememberMeSe t,globalID,Form sAuthentication .FormsCookiePat h);

// Encrypt the ticket.
String hash = FormsAuthentica tion.Encrypt(ti cket);
//Create the authentication cookie
HttpCookie cookie = new HttpCookie(Form sAuthentication .FormsCookieNam e, hash);

My problem is when I'm logging in to Both site1 and site2 then these two are not running simultaneously on single browser using different tab for same user name.

one is being logged out when logging to the other application and vice verse.

Has anyone run in to such problem..
What wrong thing I'm doing here..Pls help.

Thanks in advance!!!
Jan 12 '11 #1
0 999

Sign in to post your reply or Sign up for a free account.

Similar topics

2
2756
by: Julie | last post by:
I have a page that authenticates users by reading Request.ServerVariables("AUTH_USER") and Request.ServerVariables("AUTH_TYPE"). When users try to access this page from windows NT/2000, it works fine (prompts them for their credentials when they're not on the same domain, and then lets them in). Now, some of the users got XP boxes, and can't get in to the page. It prompts them for their credentials but when they enter them, just keeps...
4
3108
by: Gopal-M | last post by:
I have the problem with sizeof operator I also want to implement a function that can return size of an object. My problem is as follows.. I have a Base class, say Base and there are many class derived from it. At a particular point in my application I need the size of the object pointed to by the base pointer. Eg
0
1023
by: Jurjen de Groot | last post by:
I have build an ASP.NET application and would like to protect various folders containing aspnet pages for various usertypes. /Admin /Manager /User I've created a login on the default.aspx in the root of the project. After typing username/password and hitting the login button the user is validated against a USER/ROLE Table in the database and an object having the
1
2133
by: Killian | last post by:
All, I'm using a word application in ASP.net (server side) to open an existing document, do a mail merge on it and then serve the created document to the client. The problem I am having is when I open the word document using the Word.Application and I then try to access the ActiveDocument property I get an error message saying that 'This command is not available because no document is open. '
2
1641
by: Brett Smith | last post by:
I currently I am using integrated windows authentication, (anonymous access disabled), with impersonation on my asp.net app. I would like to implement forms authentication against AD, but I have not found a way to then have the proper AD user authenticated on the SQL server. If I enable anonymous access and then specify a user that had rights to the SQL server I can make the calls but I loose any audit trail or SQL server level rights...
4
1177
by: david.moran | last post by:
Hi Our site is hosted at www.data-visualzation-software­.com and forms authentication works fine. We have just set up a redirect from www.apricot-software.com to this site and when this way is used to access the site, the logon just seems to circle round - you enter your details, press the Logon button and you go back to the logon prompt page. I've created a test account for anyone who wants to give it a go:
5
5132
by: djhexx | last post by:
Hi. We have an asp.net intranet application written in VB that uses forms authentication for all it's pages. I have a C# asp.net application that I just wrote. The company would like the C# application to authenticate using the same mechanism as the intranet app. Therefore...if I try to login to the c# app, it should redirect me to the intranet login. Once I pass authentication, I should be able to access the c# app. Now. Here is...
5
2085
by: Claudia Fong | last post by:
Hi, I'm using console application to connect to a db and I managed to use the SELECT statement to display records in my DB but I also need to UPDATE some fields in my table but after I run the code below, it didn't update the record.. Can someone tell me? Cheers
1
1366
by: Dave | last post by:
Hi. When my client program runs under XP and calls a server (solaris in this case) via an SslStream all is well. The client may make multiple calls and multiple authentication calls and be fine. I expressly "clean up" everything streamwise and socketwise and all is well. Running the client under Vista, when the second authentication call is made it returns the following SSPI error: "A call to the SSPI failed, see inner exception"
1
2989
by: =?Utf-8?B?S2F1c2hhbCBNZWh0YQ==?= | last post by:
Hi, I am facing the ServerTooBusyException when using reliable session and net.tcp binding. I have single server and single client application. The client registers for the event at the server. When event occurs server send the message to the client indicating event occurance. The event is generated at a rate of 1 event/min. So, I do not think the error is because of continous firing of events, such that server gets loaded with it.
0
9687
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10251
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 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...
0
9072
agi2029
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...
1
7565
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 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...
0
6805
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5463
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4141
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
2
3759
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2938
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 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...

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.