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 8750431
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T12:51:44+00:00 2026-06-13T12:51:44+00:00

I obtain a HTTPCookie, but need a Net.Cookie. Are they just something you can

  • 0

I obtain a HTTPCookie, but need a Net.Cookie. Are they just something you can recast, or how would i go about it?

  • 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-13T12:51:45+00:00Added an answer on June 13, 2026 at 12:51 pm

    Actually you have two questions:

    1. Difference between System.Web.HttpCookie and System.Net.Cookie
    2. How to convert from HTTPCookie to a Cookie.

    Part 1)
    This question is really interesting ,I’m still thinking why there are two classes which looks pretty same ,My initial thought was System.Web.HttpCookie inherits System.Net.Cookie but this isn’t true both directly inherit from Object so they are distinct classes ,but the properties matches a lot ,so this gives a hope for the solution of part 2.

    Part 2)
    I think its possible to convert one into another theoretically since both are just objects if you populate them the right way it will work , here a little analysis when I compared the two classes.

    Click to open in new tab to enlarge
    Click to open in new tab to enlarge

    Update:
    The System.Web is made to be used in server-based apps and System.Net can be used for client based apps.

    Some Thoughts:

    1. Write a method or a static class which can convert one object into another, I haven’t check all of them but properties whose names match, there signature also matches.
    2. Properties which don’t exists in the another object you can stuff some constant or a value which you know matches the scenario like Port number.

    Good luck ,let me know how you came up with the final solution ,post the code or link.

    Some Links
    this post has some related code

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

Sidebar

Related Questions

I need to obtain something like this in zend <input type=text name=phone[1] value= />
Apparently you can easily obtain a client IP address in WCF 3.5 but not
How can I obtain the .NET Framework directory path inside my C# application? The
How can I obtain the count of faulted messages from a Windows Azure Storage
I would like to obtain, from within the Python program, the maximum physical memory
I need to obtain a Date object from this String:This is a example) M-27\nJUN-2012
I can't obtain the result I want, let me explain: I have two tables
I need to obtain the final url for an image to set it as
I would like to obtain the following kind of routing: HTTP POST message with
I would like to obtain a BitBlt() screenshot of a control with big height

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.