Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8005101
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T17:07:40+00:00 2026-06-04T17:07:40+00:00

I am trying to develop a simple single sign on solution using ashx file

  • 0

I am trying to develop a simple single sign on solution using ashx file for setting/deleting cookies. .Net 4.0, C#.
I am making a web request (from sitea.com/) to an ashx resource (on a different domain siteb.com/file.ashx) to set a cookie, then I make another request (from sitec.com/) to the same resource (at siteb.com/file.ashx) to see if the same cookie exists. Unfortunately, it comes back as null. When I fiddle it, I can see cookie being there (in request/response headers on siteb.com) on both occasions.

What I don’t understand is, how can it be not available via code. I tried using context.Request.Cookies (context comes from public void ProcessRequest(HttpContext context) method), HttpContext.Current.Request.Cookies, also on Response, but no success.

HttpCookie AuthCookie = context.Request.Cookies["SiteCookie"];

PS: I am writing code on all ends, that is making requests and checking cookie validations. Any idea what could be the problem?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T17:07:42+00:00Added an answer on June 4, 2026 at 5:07 pm

    Cookies have domain property, see http://msdn.microsoft.com/en-us/library/system.web.httpcookie.domain.aspx. So it seems that your cookie is set for domain siteb.com, thus unavailable for other domains.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i'm trying to develop a simple Hello World web service using Axis2 v1.5, Tomcat6
I'm trying to develop a very simple Java web application using JSP and Servlets.
I am trying to develop a .NET Web Project using NHibernate and Spring.NET, but
I'm trying to develop a simple kernel using TASM, using this code: ; beroset.asm
being a beginner i m trying to develop a very simple service using express
I am trying to develop one simple application using Java, Flex and Blazeds. I
I am currently trying to develop a simple plugin for visual studio 2008 using
I am trying to develop a simple (?) application for N900 using Qt, but
I'm trying to develop simple RESTful api using FastCGI (and restcgi). When I tried
=I am trying to develop a simple drag/drop UI in my web application. An

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.