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

  • Home
  • SEARCH
  • 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 3696728
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T04:46:26+00:00 2026-05-19T04:46:26+00:00

I need something like a cookie, but I specifically don’t want it going back

  • 0

I need something like a cookie, but I specifically don’t want it going back to the server. I call it a “client side session cookie” but any reasonable mechanism would be great.

Basically, I want to store some data encrypted on the server, and have the user type a password into the browser. The browser decrypts the data with the password (or creates and encrypts the data with the password) and the server stores only encrypted data. To keep the data secure on the server, the server should not store and should never receive the password. Ideally there should be a cookie session expiration to clean up.

Of course I need it be available on multiple pages as the user walks through the web site.

The best I can come up with is some sort of iframe mechanism to store the data in javascript variables, but that is ugly. Does anyone have any ideas how to implement something like this?

FWIW, the platform is ASP.NET, but I don’t suppose that matters. It needs to support a broad range of browsers, including mobile.

In response to one answer below, let me clarify. My question is not how to achieve the crypto, that isn’t a problem. The question is where to store the password so that it is persistent from page to page, but not beyond a session, and in such a way that the server doesn’t see 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-05-19T04:46:27+00:00Added an answer on May 19, 2026 at 4:46 am

    For what you are looking for I would say that javascript is the best you could do.

    You can retrieve the encrypted data onto the server and decrypt it using javascript on the client side. No transmission of password, no secret for the user.

    It depends which encryption algorithm you are using but there is libraries for that (for example Stanford Javascript Crypto Library)

    (but I don’t understand why are you talking about cookies)

    If you are interested in the storage aspect rather than the cryptography aspect, perhaps you might consider Thomas Frank’s session variables

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

Sidebar

Related Questions

Basically, what I need is something like Dependecy Walker , but it should work
i want something like this the user enter a website link i need check
I need to add full web search to my site. I need something like
I usually do something like the example below when I need to return error
I need to create an XML schema that looks something like this: <xs:element name=wrapperElement>
I need to create a wpf treeviewlist to look something like this: AAAA BBBB
I need to display text in an iPhone application, something like the way a
Usually when I need to fork in C, I do something like this: pid_t
I need something like the C function getservbyname() for a Java application. I've got
How to send a table to function as argument? Need something like that: CREATE

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.