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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T18:29:02+00:00 2026-05-31T18:29:02+00:00

I’ve been seeing a trend in my log files recently of user agent Microsoft

  • 0

I’ve been seeing a trend in my log files recently of user agent “Microsoft URL Control – 6.01.9782” causing issues. When I trace the IP it comes from China or India. Our website is very local specific so we get very few visitors from outside of the city.

The interesting thing that’s new is that I’m seeing a valid logged in user via openID. My guess as to what is happening is that the users computers cookies are being cloned and a virus is hijacking the session. I’m using built in asp.net authentication to handle my cookies and Microsoft doesn’t include any checks for IP or user agent so I know I can copy cookies and forge a log in.

I have seen both Google and Facebook accounts log in like this.

My questions are:

A) Is there an easy way to make asp.net authentication more secure?

B) What should I do about these accounts? (best practice) I don’t collect any personal information and have no way to contact some of my users.

  • 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-05-31T18:29:03+00:00Added an answer on May 31, 2026 at 6:29 pm

    You can use the HttpOnly that prevents client-side script from accessing the cookie via the document.cookie property. Cookies will still roundtrip but will be inaccessible by scripts and will not be stolen.

    With ASP.NET 1.1, add in Global.asax the code bellow:

    protected void Application_EndRequest(Object sender, EventArgs e)
    {    
        foreach(string cookie in Response.Cookies)    
        {        
            const string HTTPONLY = ";HttpOnly";        
            string path = Response.Cookies[cookie].Path;       
            if (path.EndsWith(HTTPONLY) == false)       
            {            
                //force HttpOnly to be added to the cookie           
                Response.Cookies[cookie].Path += HTTPONLY;        
            }    
        }
    }
    

    With ASP.NET 2.0 and above, you can use the web.config:

    <system.web>
        <httpCookies httpOnlyCookies="true" />
    </system.web>
    

    If the security is something very important in your system, a better approach is to invest in a SSL (Secure Sockets Layer) connection to your site. You can then set a cookie property that causes the cookie to be transmitted only if a SSL connection is present. SSL does not protect the cookie from being read or manipulated while it is on the user’s computer, but it does prevent the cookie from being read while in transit because the cookie is encrypted.
    This approach requires the acquisition of a SSL certificate.

    This can be done in the httpcookies element of web.config.

    <system.web>
        <httpCookies requireSSL="true" />
    </system.web>
    

    If the connection is not SSL the cookie is not sent to the server.

    See more:

    ASP.NET Cookies FAQ

    Design and Deploy Secure Web Apps with ASP.NET 2.0 and IIS 6.0

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

Sidebar

Related Questions

I have a jquery bug and I've been looking for hours now, I can't
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I have thousands of HTML files to process using Groovy/Java and I need to
I need to clean up various Word 'smart' characters in user input, including but
I have a bunch of posts stored in text files formatted in yaml/textile (from
I have a .ini file as follows: [playlist] numberofentries=2 File1=http://87.230.82.17:80 Title1=(#1 - 365/1400) Example
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have just tried to save a simple *.rtf file with some websites and

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.