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.

3857 questions
1
vote
1 answer

How to use sessions in Locomotive.js

I am giving a look at the node.js web framework Locomotive. Since it is built on top of Express, I suppose Connect middleware should be easily accessible, but I can't find out how. I added 2 lines to…
lortabac
  • 589
  • 4
  • 16
1
vote
3 answers

ColdFusion: #URLSessionFormat("index.cfm?foo=bar")# -> two questionmarks in URL when cookies disabled

My form looks something like this:
"> When I disable cookies and submit the form my URL looks like this: index.cfm?foo=bar?CFID=12345&CFTOKEN=12312312…
Seybsen
  • 14,989
  • 4
  • 40
  • 73
1
vote
2 answers

One of SESSION variables gets changed

I am developing a web application with per-role user interface and functionality. In users table I have a role column, an enum, which stores each user's role. In the login script if a matching record for the user/pass is found I set a…
Majid Fouladpour
  • 29,356
  • 21
  • 76
  • 127
1
vote
1 answer

save username but shows name in c#

I'm working with c#, in vs 2008, framework 3.5, I need to save the username and when the user log in, it shows he/her first and last name, at this point can save it, and that is what I want but need to show to the user not his/her username…
suely
  • 334
  • 1
  • 8
  • 19
1
vote
2 answers

how to hide the warning message for the session?

I got the following warning messages as shown in picture which i believe is due to addition of an extra session variable (session_start) so what i want is that i need to hide that warning. Actually if i didn't give session at the beginning to get…
Kundan Raj
  • 77
  • 1
  • 6
1
vote
0 answers

Spring:Error while accessing scoped beans from jsp

I learnt how to access session scoped sping beans from a jsp but got the following error: No thread-bound request found: Are you referring to request attributes outside of an actual web request, or processing a request outside of the originally…
Srini
  • 420
  • 1
  • 5
  • 17
1
vote
4 answers

PHP HTTP_REFERRER - how to detect last page?

I need to detect where the user has just clicked from - as my AJAX content needs to be displayed differently depending on the source page it is to be inserted into. If it's to go into about.php it needs to be data only, but if it's to go into…
MrFidge
  • 2,107
  • 11
  • 40
  • 63
1
vote
1 answer

asp.net mvc application session variables are null in IIS 6

Everything is working fine locally but then when I deploy the application to IIS 6 server all session variables are null. In the application I am using the session variables, for example, like so: System.Web.HttpContext.Current.Session["test"] =…
MightyAtom
  • 331
  • 4
  • 24
1
vote
1 answer

PHP session expires from android WebService

I'm coding an android app that sometimes uses php scripts and I'm now trying to use some Session IDs in the php scripts that I'm using. So when the user loggs (login/pwd) on the webservice from the application a sessionID is created on the…
Karly
  • 389
  • 2
  • 7
  • 25
1
vote
2 answers

Django - Session variables does not change unless the page is refreshed

I am using a session variable to check whether the user is logged in as a contractor or an employer When contractor : request.session['LoggedAsContractor'] = True When employer : request.session['LoggedAsContractor'] = False I then implemented…
mbanayosi
  • 23
  • 1
  • 6
1
vote
1 answer

Why is my PHP session array disappearing between page reloads?

I can't figure out why my PHP session array disappears between page loads. The following code makes session_start() available on each page load:
jnthnclrk
  • 469
  • 6
  • 29
1
vote
2 answers

In a classic ASP application, is it better to use a session or cookie for cross-page data persistence?

I have inherited a fix on a classic ASP application where we want to store some user session-specific data to persist across page loads/their session, and need a bit of a refresher. In the past I have simply used Session variables - ie.…
ElHaix
  • 12,846
  • 27
  • 115
  • 203
1
vote
1 answer

PHP Sessions and redirecting

user962206
  • 15,637
  • 61
  • 177
  • 270
1
vote
3 answers

Session abandoning

I have 3 active Sessions in my website Session["name"], Session["lastname"] and Session["username"], does Session.Abandon() will abandon all of them?
Katerina
  • 364
  • 6
  • 22
1
vote
0 answers

Session Variables Not Working

I am having a problem with my application. I am creating two session variables on a button click event, and then re-directing to another page and executing a method that selects data from a database (using the two session variables as parameters),…
1 2 3
99
100