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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T23:49:20+00:00 2026-06-03T23:49:20+00:00

I am working on a MVC 3 application that will be hosted in a

  • 0

I am working on a MVC 3 application that will be hosted in a web-farm with a multi-worker process setup. There are about a dozen variables that are being stored in Session but are getting lost due to the IIS setup.

By getting lost I mean that when the Logon process succeeds I see through logging that I have set the Session variables but then after the Redirect action and on the landing Controller Action the Session variables are often empty. I’m not sure if this is related but this is in a HTTPS.

We are looking at the possibility of moving our user-specific settings that are stored in Session out to some other mechanism but there is one variable that I won’t be able to do that with. Given the above deployment environment I have the following questions.

  1. Are cookies my only (best?) alternative to storing Session variables for user-specific settings?
  2. If so is there a secure mechanism for writing cookies so they cannot be manipulated and can still be read in a multi-server environment?
  3. As I understand it System.Runtime.Caching suffers from the same problem when ran in the above IIS configuration. Is that true?
  • 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-03T23:49:22+00:00Added an answer on June 3, 2026 at 11:49 pm

    Are cookies my only (best?) alternative to storing Session variables
    for user-specific settings?

    No – they are about the worst possible approach. Three reasons that come to mind:

    1. They can be manipulated.
    2. They travel with every request from client to server – inefficient.
    3. They will add more complications to your implementation since you’ll have to start thinking about securing them in different ways.

    If so is there a secure mechanism for writing cookies so they cannot
    be manipulated and can still be read in a multi-server environment?

    See answer above.

    As I understand it System.Runtime.Caching suffers from the same
    problem when ran in the above IIS configuration. Is that true?

    True. You should be using any of the State Providers that are out of proc. You can either use Sql Server to store session data -provided your objects are serializable, obviously- or the State server mode mode="stateserver"

    Read here for more details

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

Sidebar

Related Questions

I'm working on an ASP.NET MVC web application that will be deployed across multiple
I'm currently working on an Asp.net MVC Web application. In my solution, there're two
Ok so I'm working on an ASP MVC Web Application that queries a fairly
I'm working on a web service using ASP.NET MVC's new WebAPI that will serve
I'm working on a stock-standard, ASP.NET MVC 3 web application (hosted on IIS 7).
I am working on code for an ASP.NET MVC application that will do the
I am working on a .net mvc web application that has a bunch of
I've started working on a WebForms (not MVC) application that will reside on a
Recently i am working on migrating the ASP.NET Web application to MVC. I am
I am working on a commercial web application that has a separate mobile browser

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.