Questions tagged [session-state]

Session-state allows the retrieval of values for a given user as that user navigates through a website. It is used to maintain state across a visit within the constraints of the stateless HTTP protocol. Session-state is commonly abbreviated to session.

session-state
Filter by
Sorted by
Tagged with
2 votes
1 answer
2k views

wicket sessions: how to prevent "jsessionid" from showing up in googlebot crawl results?

When google crawls our site the resulting URLs all have the jsessionid appended to them. Is this happening because the app server is detecting a lack of cookie support in Googlebot, forcing the ...
George Armhold's user avatar
0 votes
5 answers
14k views

c# How to get session from asp.net session cookie

I'm pretty basic with .net But basically I've been told that to have session stickiness for my website in the environment it is to be deployed means I have to get session from the cookie ASP....
asn1981's user avatar
  • 237
2 votes
0 answers
2k views

ReportViewer Control and SQL SessionState in Remote SSRS Server Mode

I have an issue with the way the ReportViewer Control uses SessionState. Background : We have a .NET 3.5 WebForms App, which uses the ReportViewerControl in RemoteServer mode As our application uses ...
StuartLC's user avatar
  • 106k
3 votes
4 answers
5k views

Session Id's, UUID's and GUID's and just ID's in general

I have an idea. It might be bad, for reasons not known by me, but I would really appreciate your feedback on this! We've been using Session ID's in a PHP project. And for the first time in 4 years, a ...
Lucifer's user avatar
  • 221
2 votes
1 answer
2k views

Adding tempdb items on startup in SQL Server

How could I add some items to the tempdb anytime SQL Server starts up? I'm no expert at this, but our ASP SessionState is stored in the DB and for some reason the tempdb items used for the session ...
Rachel's user avatar
  • 131k
0 votes
1 answer
399 views

htaccess mod_rewrite, PHP, and cookies turned off in the browser

PHP puts the session id into the URL when cookies are turned off. Does this session id have to be accounted for (by proactively coding for it) in the case where .htaccess rewrite is being used? Also, ...
Owen's user avatar
  • 7,437
0 votes
2 answers
565 views

sql server to store sessions state /time out

<authentication mode="Forms"> <forms loginUrl="~/Account/LogOn" timeout="100" defaultUrl="~/" name="Auth"/> </authentication> AND <sessionState timeout ="1"></...
Kuttan Sujith's user avatar
1 vote
2 answers
798 views

Problems with Session in Asp.Net

We have a web farm of IIS 6 servers that runs our application. Our session is stored on Sql Server 2005 on a diffrent server. Every couple of months we are getting this error in one of the web server ...
YsA's user avatar
  • 11
6 votes
3 answers
7k views

Session.Abandon() does not abandon the session straight away

In my ASP.NET web app I call Session.Abandon() in Page_Load(). I would expect this would abandon the session straight away and the next time I reference the HttpContext.Current.Session a new session ...
Mark Robinson's user avatar
1 vote
2 answers
8k views

How do I use ASP.NET Session object in my MVC 3 web app?

I need to use session in my MVC 3 web app like I used to do in my old ASP.NET web app. I need to save some values, and then access it from any of my controllers and all other views. Please give me a ...
user avatar
5 votes
5 answers
10k views

Set different timeout for different session variables in ASP.Net

Is this possible to set different timeout for different session in ASP.Net? Edited I mean that in the same page i have 2 session variable Session["ss1"] and Session["ss2"], is there possible to set ...
Hieu Nguyen Trung's user avatar
3 votes
3 answers
1k views

Is there any good reason why the authentication cookie and the session state cookie are two separate cookies?

Is there any good reason why ASP.NET's session state cookie and the Forms Authentication cookie are two separate cookies? What if I want to "tie" them to each other? Is it possible in an elegant way? ...
isekaijin's user avatar
  • 19.5k
7 votes
2 answers
387 views

Has anyone created a PHP Session-like class in user code (not native)?

The native PHP Session functionality is great, but it's ultimately a singleton. There are times when you need to maintain state for multiple apps and in the scope of an already-started session (e.g. ...
Steve Clay's user avatar
  • 8,741
6 votes
3 answers
1k views

caching search results in session vs keeping large object heap clean

Ok so I've been working on an ASP.NET project for a while and it seems I've made some bad design choices that are coming back to haunt me as the project keeps on getting bigger and bigger in terms of ...
Nicolas78's user avatar
  • 5,124
0 votes
1 answer
509 views

Maintain session state data in a way that keeps it tied to the authentication cookie

I am developing an ASP.NET MVC 3 Application that is essentially a proxy to a database. To login, users must provide their database user and name. (I know it isn't a good idea to use database users as ...
isekaijin's user avatar
  • 19.5k
1 vote
2 answers
316 views

Session doesn't remember set value

I am trying to pass data between two pages using Session State in ASP.NET. The data that needs to be passed is from a GridView's Cell. So, on SelectedIndexChanged event I'm storing the data like that: ...
Tsvetan's user avatar
  • 289
3 votes
1 answer
3k views

How to Maintain State in an Oracle ApEx Form

I have hit a snag and I'm unsure on what the best way to tackle this issue using Oracle ApEx. Basically I have a form that is based off Table1 but at the same time, a section/region within this form ...
tonyf's user avatar
  • 35.1k
1 vote
2 answers
12k views

How to check if the Session expires using JavaScript

I want to redirect the user to the "Login page" from anywhere in the application once the session is expired. How can I accomplish that using JavaScript?
karthik k's user avatar
  • 3,911
1 vote
1 answer
1k views

shared session-state over subdomain

I read thousand of doc but nothing work for me. 1) What I want : on my server-side I used the following variable : (string)Session["myData"] 2) When I changed the subdomain www.myDomain.com/myPage....
Zitun's user avatar
  • 388
3 votes
1 answer
65 views

Reference Objects in sessions

if a list of objects are saved in the session, the session gets updated automatically when a new object is added to the list due to objects declared as reference types.. why this is not the same case ...
Saber Shebly's user avatar
1 vote
1 answer
1k views

ASP.NET Reportviewer shows reports when i use sessionstate "InProc" but does not when i use "StateServer"

I have my asp.net state service enabled and configured my session state config as per below but my reports keep saying "ASP.NET session has expired" when i try to generate my reports using ...
Zen Pak's user avatar
  • 578
12 votes
2 answers
7k views

ASP.NET Session State Performance Benchmarks

I have found a lot of great information comparing InProc, StateServer, and SQLServer for ASP.NET state management, but I can't seem find any performance benchmark comparisons. It is clear that InProc ...
Joel Beckham's user avatar
  • 18.5k
1 vote
2 answers
416 views

Check once per user session - asp.net

I would like to make a call to the underlying backend just one time when user first initiates a user session. While the session is up, the same call shall never be made again. Do I just create a ...
dexter's user avatar
  • 7,123
0 votes
2 answers
296 views

ASP.net: How to list a WebApplication All users Session

I want to know my website memory usage,first i want to know Session detail of all users,this will help me decide whether to change sessionState Mode to "SqlServer" or "StateServer". How can i do? ...
guaike's user avatar
  • 2,481
33 votes
5 answers
35k views

Maintaining session in android ( application stay authenticated on the server side)

I am building a login application in android in which i am hitting a url(with username and password) upto that part it works fine but after that whenever I am hitting a url(once the user is ...
Dinesh Sharma's user avatar
13 votes
2 answers
16k views

PHP session HTTP to HTTPS problem

I have a (HTTPS) login.php page which remains HTTPS (ie once user logged in goes to account dashboard). Now the problem is say the user whilst logged on to the secure dashboard clicks onto a non-...
daza166's user avatar
  • 3,623
2 votes
1 answer
2k views

sessionState problem at .net mvc (MySQL)

Have next problem: i setup the custom session state server (store sessions in Mysql). But the session data not added to database (the default .net session table is empty), but the authorization works (...
Evgeniy Labunskiy's user avatar
1 vote
0 answers
1k views

Why would setting 'httpOnlyCookies="true"' disrupt sessions?

In my asp.net mvc web.config file I've set the following... <httpCookies httpOnlyCookies="true" /> Everything works fine on my dev machine and the live server but on the staging server the ...
Ian Warburton's user avatar
2 votes
2 answers
1k views

Stop devise from automatically creating a session after a successful registration

I'm using STI and have 2 models inheriting from User. One type of User can only be created by the other user (Admins create Testers). The problem is, every time I register a new tester with the admin,...
pizza247's user avatar
  • 3,877
2 votes
1 answer
2k views

IIS Web Gardening with InProc mode

I want to ask a question about web gardening in IIS. There is an asp.net 2.0 web application running on IIS 6.0, application run on single worker process and InProc session mode. I want to run ...
naktepe's user avatar
  • 51
1 vote
1 answer
1k views

Getting session null in GWT application in web mode but not in hosted mode

I am running a GWT application which maintains a user cache in session object. I am using Spring Security 3.0.5. Following is the code I am using to get session object ServletRequestAttributes attr =...
Gaurav Saxena's user avatar
1 vote
1 answer
3k views

classic asp.net shoppingcart session state

I have used this example to create a shopping cart : http://net.tutsplus.com/tutorials/other/build-a-shopping-cart-in-aspnet/ Its a good example, it stores the shoppingcart in the Session["cart"] ...
Alex Peta's user avatar
  • 1,407
3 votes
2 answers
457 views

What is and why use Session Mode : SQL Server Mode?

I want to know in which situation i am use this mode ?
Hitesh's user avatar
  • 33
2 votes
1 answer
2k views

ASP.NET loses session data when delete directory on WebApplications

I'm creating a web application in asp.net mvc2 and I'm having a little problem in an interesting situation that I assume is a default behaviour on webapplications. (sessionstate= inproc) When i ...
Flavio CF Oliveira's user avatar
1 vote
2 answers
199 views

Maintaining state in SMS based Communication

we are developing a SMS based quiz competition, in that user requests to start quiz by sending sms to our server. then questions are asked by server and user replies to it. Entire application is a web ...
svzub's user avatar
  • 13
0 votes
4 answers
322 views

What is common AJAX convention for knowing a particular state when a page is loaded?

This has been a question I've had since I started doing serious ajax stuff. Let me just give an example. Let's say you pull a regular HTML page of a customer from the server. The url can look like ...
egervari's user avatar
  • 22.4k
1 vote
1 answer
3k views

How does the MemCacheStore really work with multiple servers?

I can't find documentation on the behavior of ActiveSupport::Cache::MemCacheStore anywhere, and I'm hoping someone here can shed some light. The rdoc says: "Clustering and load balancing. One can ...
Joshua's user avatar
  • 5,394
0 votes
2 answers
1k views

Select a way for Session Management on Windows Azure

I am planning for a application which will be deployed on Windows Azure. The web role will have multiple instances. I see that with multiple instances in-proc session will not work.I see that I have ...
ajay_whiz's user avatar
  • 17.8k
0 votes
3 answers
42 views

How can I keep a set of data during several calls to the server in PHP?

I am developing a really simple PHP application to display pictures on the web. My application is composed by a Database with two tables Image and Categories, some simple business logic and the UI. ...
CiccioMiami's user avatar
  • 8,146
1 vote
2 answers
2k views

Session timeout handled, but still not working in asp.net?

I set timeout for 30 mins in web.config like below <forms name=".FormsAuth" loginUrl="/Login.aspx" timeout="30" protection="All" slidingExpiration="true" > <sessionState mode="...
James123's user avatar
  • 11.4k
1 vote
1 answer
4k views

Unable to use session state server because this version of ASP.NET requires session state server version 2.0 or above

I am migrating 2 .NET web sites from one Windows 2003 (IIS6) server to another. One of the sites is .NET 2.0 and the other is .NET 3.5. I am using the StateServer mode of ASP.NET session state with ...
NightOwl888's user avatar
  • 56.2k
0 votes
1 answer
857 views

Server 2008 IIS 7.5 SSL Session Problem

I developed a e-commerce project. My project copies running on Server 2003 / IIS 6 with .Net Framework 4.0 . Today, i have Server 2008 and IIS 7.5. Project is running normally but when i redirected ...
ismailperim's user avatar
  • 1,532
0 votes
3 answers
173 views

Check sessions when redirecting pages in ASP.NET?

Here's the scenario: Page 1 has a text box that, if filled, will be the name of the session. It also has a button that will take you to Page 2 (when clicked). Page 2 has a button as well that simply ...
Ray's user avatar
  • 3,419
0 votes
1 answer
167 views

Session management in ASP.NET

I have an ASP.NET application. There is a tree link of users on the main page: nagarpalika corporation talukapanchayat This application runs fine on my PC. But when I create the virtual directory ...
ashtrup's user avatar
-1 votes
2 answers
1k views

Storing Session State in an ASP.Net Web Farm (Memcachedb or...?)

We have an ASP.Net [MVC] web farm (Windows Server 2008 R2 running IIS). For which we want to share session state across each box. I'm aware that we can do this with SQL Server, but understand that ...
isNaN1247's user avatar
  • 18k
0 votes
2 answers
1k views

Asp.net session: two different users are able to access the same session

In my website, I am storing some user specific setting in session. But other users are able to access the same session after the first user logout. Isn't session user specific? If yes how come the ...
subs's user avatar
  • 2,189
5 votes
2 answers
4k views

How is session object timeout handled in ASP.NET with SQLServer as sessionState mode?

How, or maybe where, is the session timeout handled when you set SQL Server as state handler in an ASP.NET application? Is it the .NET framwork who after loading session objects from the DB does a ...
Nilzor's user avatar
  • 18.4k
0 votes
1 answer
903 views

Tracking whether user is logged-in in a stateless web application?

If I wanted to enable users to log in and out, what would be some good patterns of doing this in a stateless application? Also, what are the top security concerns? I am thinking of doing this in ...
Genadinik's user avatar
  • 18.4k
30 votes
2 answers
17k views

What are the benefits of a stateless web application?

It seems some web architects aim to have a stateless web application. Does that mean basically not storing user sessions? Or is there more to it? If it is just the user session storing, what is the ...
Genadinik's user avatar
  • 18.4k
6 votes
1 answer
2k views

MVC SessionStateAttribute not working as Global Attribute

How do you setup SessionStateAttribute as a global filter in MVC3? In my Global.asax I have this in the RegisterGlobalFilters method. filters.Add(new SessionStateAttribute(SessionStateBehavior....
Nick Albrecht's user avatar

1
28 29
30
31 32
39