session-state

Solution for previewing user changes and allowing rollback/commit over a period of time

▼魔方 西西 提交于 2019-12-11 06:18:07
问题 I have asked a few questions today as I try to think through to the solution of a problem. We have a complex data structure where all of the various entities are tightly interconnected, with almost all entities heavily reliant/dependant upon entities of other types. The project is a website (MVC3, .NET 4), and all of the logic is implemented using LINQ-to-SQL (2008) in the business layer. What we need to do is have a user "lock" the system while they make their changes (there are other

Session State is erased after calling RedirectToAction() in ASP.NET MVC 3

微笑、不失礼 提交于 2019-12-11 05:58:32
问题 I use a simple sequences: Set a Session State in [HttpGet] method. Redirect to another action using RedirectToAction() in [HttpPost] method. Want to get the value of that Session State, in the destination. Problem: If user hits "submit" button on my "Table" view, all the data inside session got cleared and I can't get them in the destination action (which is "Table"). Here is the code: [HttpGet] public ActionResult Edit(string TableName, int RowID, NavigationControl nav) { if (nav != null)

Classic ASP session and Web Garden (multiple workers)

微笑、不失礼 提交于 2019-12-11 03:49:02
问题 We are having issues with IIS6 slowdowns when using more than 1.2GB of RAM in a single worker and would like to use more workers. However looks like ASP sessions are made by worker and when the browser accesses some page through another worker it losts the ASP session. Do you have some tips on how to solve this problem? We are considering to use some other way to manage session separately from IIS (not database, maybe memcache?). Do you recomend something? Note.: The application is full of

How can I share a SESSION between multiple ColdFusion applications on the server/under the same domain?

筅森魡賤 提交于 2019-12-11 03:47:51
问题 Let's say I have a domain sub.domain.com with one login form at https://sub.domain.com/login.cfm. In the root directory, I have my Application.cfc which names the application using THIS.Name = "MyApp"; . I have several sub-directories on this website, which I want to run as separate applications, with their own Application.cfc which extends the root Application.cfc, but each has it's own name, so that I can create Application-scope variables unique to that application: For instance: sub

InProc session data disapearing

可紊 提交于 2019-12-11 03:19:21
问题 I just noticed this about a week ago. I'm storing data about the current puzzle a user is playing (www.wikipediamaze.com) like this: HttpContext.Current.Session.Add("puzzleInfo", currentPuzzleInfo); I know that storing data in the session using the "InProc" mode is very volatile and will get reset whenever the web.config changes or any number of other factors including recycling the app pool. However my data is only staying for a few seconds at a time (the time is variable but literally not

ASPNET : Switch between Session State Providers ?‏

孤者浪人 提交于 2019-12-11 01:36:25
问题 I want to develop a new custom session state provider or use an existing (distributed caching, sql ...). Our main website renders more than 10 000 000 visits per day.It is really important for us to provide an easy rollback/switch in case of an error or a performance hit. Change web.config is not optimal because we have more than 20 front end servers. Our idea is to switch between session provider (from our custom to InProc) with a simple config in database. Is it possible to have multiple

How does the session state work in MVC 2.0?

家住魔仙堡 提交于 2019-12-10 23:47:54
问题 I have a controller that stores various info (Ie. FormID, QuestionAnswerList, etc). Currently I am storing them in the Controller.Session and it works fine. I wanted to break out some logic into a separate class (Ie. RulesController), where I could perform certain checks, etc, but when I try and reference the Session there, it is null. It's clear that the Session remains valid only within the context of the specific controller, but what is everyone doing regarding this? I would imagine this

Does ASP.NET Session state work without cookies?

时间秒杀一切 提交于 2019-12-10 22:23:18
问题 According to MSDN: By default, the SessionID value is stored in a non-expiring session cookie in the browser. If I am trying to use Session State (I'm not using Cookieless Session IDs) and a users browser does not accept cookies, will Session State work? 回答1: According to this it is supported: http://msdn.microsoft.com/en-us/library/aa479314.aspx <sessionState cookieless="true" /> The downside is that the session ID is placed in every URL used by the application: http://yourserver/folder/

How to tackle this session problem in ASP.NET,VB.NET?

时间秒杀一切 提交于 2019-12-10 20:38:47
问题 How to tackle this session problem in ASP.NET,VB.NET? The following requirement are there: When the authorized user logs into the system that user is not allowed to login from another computer or in different browser other than that user is using right at this time. The remedy we applied was: We have kept "Is_Loggedin" as a column with data type "bit" in a mst_vendor as a table name. When a user logs in we set the flag, Is_Loggedin, to "1" and each time when someone tries to log in using this

Is it possible to mark the cookie ASP.NET_sessionID as secure

戏子无情 提交于 2019-12-10 20:38:15
问题 After a security audit I got the requirement to set the cookie ASP.NET_sessionID as "secure". Right now the flag is not set. Can I use SessionIDManager to set it as secure? I am already using it to change the value of the Session cookie after logging in with this code: System.Web.SessionState.SessionIDManager manager = new System.Web.SessionState.SessionIDManager(); string oldId = manager.GetSessionID(System.Web.HttpContext.Current); string newId = manager.CreateSessionID(System.Web