Questions tagged [session-variables]

Session variable is a unit of information within a session state. It is maintained across a user's visit within the constraints of the stateless HTTP protocol.

3734 questions
27
votes
3 answers

The script tried to execute a method or access a property of an incomplete object

I'm getting an error, the full error is: Fatal error: authnet_cart_process() [function.authnet-cart-process]: The script tried to execute a method or access a property of an incomplete object. Please…
Irfan
  • 4,042
  • 12
  • 42
  • 55
27
votes
4 answers

Setting session variable using javascript

I am getting name and email id of a user after he logs in via facebook to my website.. I want to add those variables in session on login form itself using javascript; I tried following: FB.api('/me', function(me) { if (me.name) { …
Sam
  • 421
  • 2
  • 5
  • 8
26
votes
1 answer

mvc 5 session timeout after default period (20 mins)

My MVC 5 site has web.config like this: but timeout doesn't work. It…
sarojanand
  • 597
  • 1
  • 9
  • 28
24
votes
1 answer

Rails 3 additional session configuration options (key, expires_after, secure)

Can someone point out what the new Rails 3.x session configuration options are? I'm trying to duplicate the same configuration that I have in my Rails 2.3.x application. This is the configuration that I used in the…
shedd
  • 4,068
  • 4
  • 30
  • 42
24
votes
8 answers

How to use store and use session variables across pages?

When one page is accessed, I would like to start a session and store a session variable: Then from another page, I would like to check if that session variable has been stored:
ab11
  • 18,490
  • 37
  • 104
  • 194
24
votes
3 answers

Why does this PHP script (called by AJAX) randomly not load SESSION correctly?

Ahoy StackOverflow, I have come across this issue in my project: in short, from what I've gathered, is that the PHP script called via AJAX is not properly registering SESSION variables that were set at the top of the index.php page. At first, I…
TurdPile
  • 897
  • 1
  • 6
  • 21
23
votes
11 answers

Session variables are not persisting between page loads

Can someone tell me why the session vars are not passing between pages? They were working up to 2 days ago. Now its not? There is a third party system that logs users in based on the third party system. I direct users to the login page with the…
user520300
  • 1,447
  • 5
  • 21
  • 44
23
votes
3 answers

Saving data to session in JSF

I am new to the world of J(2)EE and web app development but am quickly navigating my way around it and learning a lot. Every day is a fantastic voyage of new discovery for me. I am currently working on a project in which I am using Visual JSF…
SibzTer
  • 1,637
  • 4
  • 14
  • 17
22
votes
8 answers

What is the difference between these two HttpContext.Current.Session and Session - asp.net 4.0

What is the difference between these 2 piece of codes. HttpContext.Current.Session["myvariable"] Session["myvariable"] asp.net 4.0 and C# 4.0
MonsterMMORPG
  • 20,310
  • 69
  • 183
  • 306
22
votes
3 answers

Where are session variables stored in Rails?

hard disk, main memory or somewhere else. I am not asking for the case where these are stored in database.
rubyprince
  • 16,675
  • 10
  • 57
  • 97
22
votes
4 answers

Write session start on 1 page or all pages?

All the tutorials say to put session start. They don't say if that should be in all pages on the website, or some, or only 1. And if it's only 1 page, does it have to be the main page? Or a page with a form that I am making that puts the session…
hmwhat
  • 221
  • 1
  • 2
  • 3
21
votes
3 answers

Go session variables?

I'm new to the Go language (Golang) and I'm writing a web-based application. I'd like to use session variables, like the kind in PHP (variables that are available from one page to the next and unique for a user session). Is there something like…
Ross Salas
  • 211
  • 1
  • 2
  • 3
20
votes
3 answers

Asp.Net MVC and Session

I'd like to construct an object in different steps in an asp.net mvc application, each step being a different page. The sort of thing you'd store in Session in a quick Web.Forms application. Reading about it, Session doesn't seem to me as something…
antonioh
  • 2,884
  • 6
  • 24
  • 28
20
votes
4 answers

I am confused about how to use @SessionAttributes

I am trying to understand architecture of Spring MVC. However, I am completely confused by behavior of @SessionAttributes. Please look at SampleController below , it is handling post method by SuperForm class. In fact, just field of SuperForm class…
zono
  • 7,498
  • 19
  • 67
  • 103
20
votes
2 answers

.NET HttpSessionState Case Insensitivity

.NET's HttpSessionState using an "InProc" store seems to treat session variable key values as case insensitive. For example: session["foo"] = 1; session["Foo"] = 2; Trace.Write(session["foo"].ToString()); // => 2 This behavior appears to be…
Alison R.
  • 3,994
  • 25
  • 32