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.
Questions tagged [session-variables]
3857 questions
29
votes
5 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,882
- 12
- 52
- 62
28
votes
5 answers
Web authentication state - Session vs Cookie?
What's the best way to authenticate and track user authentication state from page to page? Some say session state, some say cookies?
Could I just use a session variable that has the ID of the user and upon authentication, instatiate a custom User…

Bill
- 407
- 2
- 5
- 8
27
votes
12 answers
Session variables not working php
Here are the code of my login page where the login script checks for the authenticity of the user and then redirects to inbox page using header…

Arihant
- 3,847
- 16
- 55
- 86
26
votes
16 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,497
- 5
- 24
- 46
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
- 607
- 1
- 11
- 30
25
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
- 251
- 1
- 3
- 3
25
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
- 19,770
- 42
- 120
- 207
24
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

Furkan Gözükara
- 22,964
- 77
- 205
- 342
24
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
- 17,559
- 11
- 64
- 104
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,198
- 4
- 33
- 42
23
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
- 976
- 1
- 7
- 21
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,737
- 4
- 14
- 18
21
votes
9 answers
Sharing SESSION Variables Between Multiple Subdomains
I have a website www.example.com. That will have multiple subdomains that work with a single application or program. For an example, login.example.com will allow the user to log in to the site while system.example.com will allow the user to access…

Kevin Oluseun Karimu
- 535
- 2
- 5
- 17
21
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
- 8,366
- 21
- 75
- 113
21
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.
- 4,204
- 28
- 33