473,412 Members | 4,519 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,412 software developers and data experts.

merge two asp.net website?

How to merge two asp.net website? they will use one request.isauthenticated
attribute.

It looks redirect URL from one project to another will make
request.isauthyenticated change to false. (if it's true before redirect)
Nov 17 '05 #1
3 2356
"mark" <cn*****@hotmail.com> wrote in message
news:O%****************@tk2msftngp13.phx.gbl...
How to merge two asp.net website? they will use one request.isauthenticated attribute.

It looks redirect URL from one project to another will make
request.isauthyenticated change to false. (if it's true before redirect)


What is the Domain of the cookies you're setting? To work on localhost, it
should be String.Empty.

--
John Saunders
Internet Engineer
jo***********@surfcontrol.com
Nov 17 '05 #2
"Natty Gur" <na***@dao2com.com> wrote in message
news:ea**************@TK2MSFTNGP12.phx.gbl...
Hi,

Every web application assigns to dedicate App Domain. CLR don't let one
App. Domain to access other App. Domains memory space (as the operating
system does with process). Request is part of the application so every
request represent other session that is part of different application. I
don't think that you can share isauthyenticated because setting it on
one web application got nothing to do with other web applications.


If both web applications use Forms authentication, and if they both use the
same cookie name, domain name and path, and if they both have the same
<machineKey> settings, then being authenticated in one application will
imply being authenticated in the other. This will give the affect of their
sharing IsAuthenticated.
--
John Saunders
Internet Engineer
jo***********@surfcontrol.com
Nov 17 '05 #3
"Nick" <nb***@hotmail.com.nospam> wrote in message
news:ea**************@tk2msftngp13.phx.gbl...
John may be right. My two projects used to share the IsAuthenticated
without problem. But it suddenly didn't work since this week.

Now, the Request.IsAuthenticated is true in the my code after
authenticating, after redirect to URL in another project which also sets
forms authentication in web.config (authenticate="forms" deny ? users,
etc). The IsAuthenticated changed to false right after redirecting to
the URL.

Should I copy web.config of my first project to overwrite the second one
instead of modify the "authenticate" and "deny"?
Nick,

Don't change your web.config without knowing why.

Forms authentication problems almost always come down to cookie problems. So
you'll want to track the cookie.

I suggest turning on tracing in both projects:

<trace enabled="true" requestLimit="100" pageOutput="false"
traceMode="SortByTime" localOnly="true" />

Then, reproduce the problem and then look at http://localhost/app1/trace.axd
and http://localhost/app2/trace.axd. In particular, go through the requests
and check the Cookies collection for each step.

If you find that the cookie from app1 never gets to app2, check things like
the cookie name, domain, path and expiration for reasons why it wouldn't get
there.

--
John Saunders
Internet Engineer
jo***********@surfcontrol.com
John Saunders wrote:
"Natty Gur" <na***@dao2com.com> wrote in message
news:ea**************@TK2MSFTNGP12.phx.gbl...
Hi,

Every web application assigns to dedicate App Domain. CLR don't let one
App. Domain to access other App. Domains memory space (as the operating
system does with process). Request is part of the application so every
request represent other session that is part of different application. I
don't think that you can share isauthyenticated because setting it on
one web application got nothing to do with other web applications.

If both web applications use Forms authentication, and if they both use the same cookie name, domain name and path, and if they both have the same
<machineKey> settings, then being authenticated in one application will
imply being authenticated in the other. This will give the affect of their sharing IsAuthenticated.

Nov 17 '05 #4

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

Similar topics

2
by: Kakarot | last post by:
I'm gona be very honest here, I suck at programming, *especially* at C++. It's funny because I actually like the idea of programming ... normally what I like I'm atleast decent at. But C++ is a...
0
by: Seshadri | last post by:
Dear All, My apologies if this is not the correct forum. Please redirect. I am a bit confused on where this kind of a question belongs. However I need help rather badly. I would like to merge two...
0
by: Steve | last post by:
My application uses transfertext to create text files that are FTPed to a website and are processed by a webstore. The text files can be for one of three purposes: Add one or more items to the...
2
by: Lee | last post by:
I have a Word template that is set to merge with our client database. After I run the merge, I merge to a new document, and then save the new document. When I reopen this saved document, it prompts...
8
by: Squirrel | last post by:
Hi everyone, I've created a mail merge Word doc. (using Office XP) , the data source is an Access query. Functionality I'm attempting to set up is: User sets a boolean field to true for...
1
by: Paul Wagstaff | last post by:
Hi folks, Please forgive me - this straddles Access & Word '97 If I could, I'd send a (approx 1000 records) recordset to Word, mailmerge it & save the new document. However, Word's...
7
by: Andy Davis | last post by:
I have a table of data in Access 2002 which is used as the source table for a mail merge document using Word 2002 on my clients PC. The data is transferred OK but I've noticed that any dates which...
15
by: sparks | last post by:
They are wanting to use word to print out some cards 4 to a page preformatted stuff from an access database. the problem with this is they don't want to do the same card twice. How can setup a...
1
by: jwolfley | last post by:
I have a simple table named "Profile" that includes a field called . The field is set as a text data type. The records in the field are basic website addresess like...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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
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...
0
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,...
0
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...

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.