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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T00:25:32+00:00 2026-05-24T00:25:32+00:00

I am busy with a login system for my project. Just for an extra

  • 0

I am busy with a login system for my project.

Just for an extra step to the security.. How can I check/detect if a user has manually changed a cookie value?

Is there some easy way of doing this? Or do I have to set an extra Session variable and match it up with that? With this being said, is a normal ASP.Net Session traceable by the browser? And viewable to the user?

Thanks.

  • 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-24T00:25:32+00:00Added an answer on May 24, 2026 at 12:25 am

    You could append a digital signature to the cookie value and check the signature when you read it back. That way, if the cookie value is tampered with it will be very apparent.

    private string sign(string hashStr, byte[] secret) 
    {
        // Compute the signature hash
        HMACSHA1 mac = new HMACSHA1(secret);
        byte[] hashBytes = Encoding.UTF8.GetBytes(hashStr);
        mac.TransformFinalBlock(hashBytes, 0, hashBytes.Length);
        byte[] hashData = mac.Hash;
    
        // Encode the hash in Base64.
        string hashOut = Convert.ToBase64String(hashData);
    
        return hashOut;
    }
    

    Edit: Fixed the encoder so it’s explicitly UTF-8.

    As usual, you should also be sure to add some salt to your string before calling this, see: Secure hash and salt for PHP passwords

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

Sidebar

Related Questions

I made a simple login form where a user can click on a register
Busy on a project and I need to skip the shipping method step. Shop
I'm busy with a redesign of a telephony management system, where just one example
I'm busy introducing myself to jQuery by implementing a little system where onmouseover on
I am busy writing a login page in Silverlight. I am using an Authentication
I'm busy on a small project to convert an Access2003 db to .NET. I
I'm busy to enable login stuff via facebook oauth on my website, but the
I´m busy converting an existing project from an Ant build to one using Maven.
I am busy developing a site where I have a login box in the
I am busy with a project where I will be implementing a tree structure

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.