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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T19:42:50+00:00 2026-05-14T19:42:50+00:00

This question may expose my ignorance as a web developer, but that wouldn’t exactly

  • 0

This question may expose my ignorance as a web developer, but that wouldn’t exactly be a bad thing for me now would it?

I have the need to store user-state information. Examples of information that I need to store per user. (define user: unauthenticated visitor)

  1. User arrived to the site from google/bing/yahoo
  2. User utilized the search feature (true/false)
  3. List of previous visited product pages on current visit

It is my understanding that I could store this in the view state, but that causes a problem with page load from the end-users’ perspective because a significant amount of non-viewable information is being transferred to and from the end-users even though the server is the only side that needs the info.

On a similar note, it is my understanding that the session state can be used to store such information, but does not this also result in the same information being transferred to the user and stored in their cookie? (Not quite as bad as viewstate, but it does not feel ideal).

This leaves me with either a server-only-session storage system or a mem-caching solution.

Is memcached the only good option here?

  • 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-14T19:42:51+00:00Added an answer on May 14, 2026 at 7:42 pm

    Items 1 and 2 seem to be logging information – i.e. there’s no obvious requirement to refer back them, unless you want to keep their search terms. So just write it to a log somewhere and forget about it?

    I could store this in the view state

    I’m guessing that’s a asp.net thing – certainly it doesn’t mean anything to me, so I can’t comment.

    it is my understanding that the session state can be used to store such information

    Yes – it would be my repository of choice for item 3.

    does not this also result in the same information being transferred to the user and stored in their cookie?

    No – a session cookie is just a handle to data stored server-side in PHP (and every other HTTP sesion imlpementation I’ve come across).

    This leaves me with either a server-only-session storage system or a mem-caching solution

    memcache is only really any use as a session storage substrate.

    Whether you should use memcache as your session storage substrate….on a single server, there’s not a lot of advantage here – although NT (IIRC) uses fixed size caches/buffers (whereas Posix/Unix/Linux will use all available memory) I’d still expect most the session I/O to be to memory rather than disk unless your site is overloaded. The real advantage is if you’re running a cluster (but in that scenario you might want to consider something like Cassandra).

    IME, sessions are not that great of an overhead, however if you want to keep an indefinite history of the activity in a session, then you should overflow the data (or keep it seperate from) the session to prevent it getting too large.

    C.

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

Sidebar

Related Questions

This question may be too product specifc but I'd like to know if anyone
This question may sound fairly elementary, but this is a debate I had with
Alright, I am going to state up front that this question may be too
You may think this question is like this question asked on StackOverflow earlier. But
this may be a naive question, but, as asked in the object, what is
This may be a silly question for some of you, but what are Pros/Cons
This question may be subjective but i just want to know when to use
This question may sound kinda weird but actually, I need to convince my mangement
This question may seem completely stupid, but say i have a PHP page with
i'm a long-time newbie to c#, and this question may be too obvious, so

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.