473,382 Members | 1,563 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,382 software developers and data experts.

Reading Cookies from another domain?

Hi:

I have a web app that uses three separate domain names - I am trying to
develop a "single sign on" routine so that they can move between the
sites without having to sign on each time the domain changes.

I have found that I can only read and write cookies based on the URL so
if a cookie is written in "www.domain1.com" it is not available in
"www.domain2.com". I have written a program that does a
Response.Redirect, gets the cookie value and is returned to the sending
domain with a redirect including parameters.

I would like to be able to do this in a class library.

If anyone has any suggestions I would greatly appreciate it!

Thanks,

Fred
Nov 21 '05 #1
1 4915
Fred,

You might want to consider using passport instead, since it was designed
to handle exactly this scenario.

Hope this helps.

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Fred Nelson" <fr**@smartybird.com> wrote in message
news:e1****************@TK2MSFTNGP09.phx.gbl...
Hi:

I have a web app that uses three separate domain names - I am trying to
develop a "single sign on" routine so that they can move between the
sites without having to sign on each time the domain changes.

I have found that I can only read and write cookies based on the URL so
if a cookie is written in "www.domain1.com" it is not available in
"www.domain2.com". I have written a program that does a
Response.Redirect, gets the cookie value and is returned to the sending
domain with a redirect including parameters.

I would like to be able to do this in a class library.

If anyone has any suggestions I would greatly appreciate it!

Thanks,

Fred

Nov 21 '05 #2

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

Similar topics

3
by: kam bansal | last post by:
Hi all, Can javascript read a cookie from a different domain? Meaning, if my html page is running on "www.mydomain.com" and I goto another domain "www.another.com" to do some work, and then I...
3
by: Marcin Gorzynski | last post by:
Hi Our partner is using our page in a frame. That couses a problem because our domain is unable to issue the cookie also session does not work. each time you click in the frame new session is...
2
by: Abdul Qadir Khan | last post by:
Hi, We have different web sites e.g www.abc.com, www.xyz.com I want to read cookies written by www.abc.com from www.xyz.com and vice versa. Please advise. Thanks AQ.
4
by: Gridlock | last post by:
I'm trying to read the cookies using HttpContext.Current.Request.Cookies, but the only cookie that I get is the ASP.NET SessionId cookie. There are many cookies on the machine, why am I only...
5
by: yawnmoth | last post by:
If running off of the local filesystem, in Firefox, or if the security settings are set appropriately, in Internet Exporer, XmlHttpRequests can be sent to any domain of your chosing. But what...
1
by: stillworkingfortheman | last post by:
I'm loosing cookies in IE6 (works in firefox) when with the following steps... step 1. set a cookie in one domain, in an .aspx.cs codebehind... in www.domain.com/subdomain1/page1.aspx...
0
by: stillworkingfortheman | last post by:
I'm loosing cookies in IE6 (works okay with firefox) with the following steps... step 1. set a cookie in one domain, in an .aspx.cs codebehind... in www.domain.com/subdomain1/page1.aspx...
2
by: Sean | last post by:
I am trying to read a cookie I set but I am not sure if I really set it correctly or I am not reading it correctly. I was given the following instructions to set the cookie. It appears to be...
2
by: StanB | last post by:
I came across this weird problem: 1. Session state stops working after the app is deployed to another server because IE does not accept cookies. 2. It works if cookieless="true" in the...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...

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.