session-state

ASP.Net MVC - Sending an object from controller to view to controller

Hi everybody, I'm just starting with ASP.Net MVC 2 and might be doing something wrong. I have a controller who builds some objects and passes them to a view using ViewData. In the view I display the data etc ... and then want to submit the same data (plus other user input) back to the same controller. Is there any simple way to do this ...

Many Applications using One Session (Need to seperate them but keep One Session)

Hello, I need to somehow tell the difference between several applications all running under the same session. The problem arises from storing things in the session. If we add something in one application called "TestVariable" and the same variable name in another application it then gets overridden. All applications have an application...

Getting session in .NET ASMX web-service

I have an ASMX webservice hosted alongside my ASP.NET web app. Now, I need to get the users session into the Webservice. To test this I made this simple method: [WebMethod(EnableSession = true)] public string checkSession() { return HttpContext.Current.Session["userid"].ToString(); } So, first I login to my web app...

How pass the asp.net session token from page to page?

best and secured way to pass the asp.net session token from page to page. 1. cookies (not secured) 2. url (not secured) 3. hidden fields ? using hidded fields is right way to pass ? how to pass using hidded fileds? how to disble the session token in cookies and also in url (session state conguration)? ...

problem in storing asp.net table to session variable in asp.net

How can i store asp.net table to session variable using sqlserver mode? Actually i'm inserting the textboxes created dynamically on button click into asp.net table but on post back it gets vanished so decided to store in a session. If anybody is having any alternative please tell me? ...

Unnecessary Session Beans in Ajax Enabled JSF Frameworks

I've noticed that when using Ajax heavy JSF 1.2 implementations like Richfaces you're somehow forced to declare more managed beans than you'll want as Session scoped so that state can be maintained across multiple Ajax requests; there are components that will just stop working. For instance, I developed this application lately in which...

AppFabric Error when disable Security for sessionState Provider

I'm completely stuck with this version 1.0.0.0 product. I'm running in a domain environment but for the specific application i'm using I want to disable security to reduce the workload on the servers when accessing the cache. I've got a bunch of web servers with an existing application using SQL sessions state, and the idea was to roll...

How does the session state work in MVC 2.0?

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....

Does fetching current_user require a corresponding view?

In my controller i have an action which does not have a corresponding view. Precisely: the upload action for uploading images. However, i require the current users id to store the image url. But the current_user method always returns nil, as the action by itself does not have a view. In such scenarios how do i fetch the current_user? I a...

Struts2: Session Problem (after reverse proxy)

I store session parameters in a Struts2 session map that I get in my actions using the SessionAware interface. My Application is in the /MyApp path. After setting up the struts2 application on an Apache server with an inverse proxy redirect that makes the URL http://www.appdomain.com/ point to my local tomcat on localhost:8080/MyApp, St...

Setting up ASP.NET SQLServer session state in SQL server using a script

Using the ASPNET_REGSQL tool I generate a script using the following: ASPNET_REGSQL.exe -ssadd -sstype c -sqlexportonly c:\addseesion.sql -E -d myDatabase -s myServer In the script that is created there is this comment: -------------------------------------------------- Note: Do not run th...

Using jQuery to store the state of a complicated form

I have a rather complicated form with many "steps" in it that are filled in by the user. Some steps (think of them as form segments) have default options, but on clicking a "enter custom values," they display a hereto hidden set of fields that the user can enter info in. Here is an example <div id="#s1_normal"> <input type="radio" name=...

Session in PageBase

Hi, I am using a page base in my web application where the page base will be called before the page load of every page. I plan to check if the if the user is valid by checking the value in session state. But i am getting an error message saying Session state can only be used when enableSessionState is set to true, either in a conf...

What's the preferred way to wrap session state in ASP.Net?

I've got an ASP.Net project that uses session state, I'd like to be a little more strict about how we access session state, I'm not happy about all the strings floating around the code. I also need to know when a particular value is stored/updated in session state for tracking that object's latest value. The string issue is easy to solv...

avoid session hijacking for Web Applications

Hi, I read about Session Hijacking articles and would like to some more information related to it. Currently my web application which is developed in ASP.NET , is using Cookieless =true mode for sessionstate. We are using HTTPS which is a secure connection which will reduce session hijacking. I know when we using Cookieless the session ...

Getting session information from within an iframe.

I have a site that uses the database for storing its session data. on this site I have a link which opens a page that contains an iframe in it. Inside the iframe I have a 3rd party app that is using its own session information for login, etc. When I am inside the 3rd party app I want to be able to access the $_SESSION information fr...

Where to place code for Session objects in ASP.NET app

I am getting a serialization error trying to use Session State Server instead of InProd. However, I can't figure out what is causing the error in session. I was given some code to add to the page to loop through the session object and figure out if each item in it is serializable. My problem is I don't know where to place the code in ...

IIS7 ASP.NET in-proc session NOT being lost after app recycle.

I've got an ASP.NET MVC app running under IIS7. It's using the default in-proc session management, which, according to all that I read, should lose the users' session after an app pool recycle. It doesn't seem to be losing it though. Even an IIS reset doesn't lose the session. Has something changed in IIS7 that keeps the session alive? ...

ASP.NET 2 Session State Between Authenticated Users

I am developing a website for a client (ASP.NET, T-SQL). It is a data-entry website allowing many of their users to login and manipulate records in the same database. There are instructions (basically a list of string) throughout the form, telling the users what to do for each section; these instructions are themselves present in the da...

Lazy loading of Session variables in ASP.NET SQL Server Mode

Would like to know whether the ASP.NET Session Provider in SQL Mode, would optimistically fetch the entire Session State object (i.e all the keys and their values when we request one) or fetch them in a lazy fashion (i.e goes to the Database and fetch only the requested key and corresponding value)? ...