Questions tagged [session]

A session refers to the communication between a single client and a server. A session is specific to the user and for each user a new session is created to track all the requests from that user.

From Wikipedia:

A session is a semi-permanent interactive information interchange, also known as a dialogue, a conversation or a meeting, between two or more communicating devices, or between a computer and user (see Login session). A session is set up or established at a certain point in time, and torn down at a later point in time. An established communication session may involve more than one message in each direction. A session is typically, but not always, stateful, meaning that at least one of the communicating parts needs to save information about the session history in order to be able to communicate, as opposed to stateless communication, where the communication consists of independent requests with responses.

An established session is the basic requirement to perform a connection-oriented communication. A session also is the basic step to transmit in connectionless communication modes. However any unidirectional transmission does not define a session.

References:

44567 questions
9
votes
4 answers

iPhone web app, not storing cookie

I am working on a web app for the iOS. When the app is opened, it check's to see if the user has a cookie with the users email stored in it, then either lets the user proceed to the homepage, or redirects the user to the authentication page. This…
Peter
  • 2,276
  • 4
  • 32
  • 40
9
votes
5 answers

PHP sessions lost between pages - behaves differently depending on server

I have spent a couple of months developing an application on a domain of mine. It's overall a simple concept. During development I hosted it myself on my own domain, but recently pushed it to our actual one. The problem is that sessions aren't…
Fredrik
  • 764
  • 1
  • 6
  • 22
9
votes
1 answer

Which MySQL database engine is better for storing sessions and session data: MyISAM or InnoDB?

Pretty straightforward question. I use InnoDB for everything else, for a couple of reasons. Is it a performance hit over MyISAM for a 'high-traffic' table?
Greg
  • 7,782
  • 7
  • 43
  • 69
9
votes
2 answers

Session not destroyed when closing browser - RailsTutorial.org

In working through Michael Hartl's railstutorial.org, I'm in Chapter 8 (specifically 8.2.3). The current problem is implementing a session to keep the user logged in across multiple views, but the functionality implemented in this section is…
9
votes
1 answer

What does it mean if my Asp.Net session has IsNewSession == true, and should I care?

To start with, this is code that I inherited and the person who wrote it is no longer here nor available to question. I have users in production getting annoyed at randomly being logged out of our Asp.Net MVC application (According to references our…
KallDrexx
  • 27,229
  • 33
  • 143
  • 254
9
votes
4 answers

AttributeError: 'WSGIRequest' object has no attribute 'session'

I keep getting this error at random times and whenever I touch the django.wsgi file, it gets fixed only to happen again after a few hours. I'm lost as to what to do. my middleware_classes is as follows: MIDDLEWARE_CLASSES = ( …
9
votes
2 answers

Google app engine users Auth: Djangoappengine Vs Web2py Vs Webpy

I'm going to develop a small web application on Gae with a registration section, login\logout and stuff like that. Since Google app Engine does not support session out of the box and I don't want to restrict access using google Accounts, I am forced…
systempuntoout
  • 71,966
  • 47
  • 171
  • 241
9
votes
1 answer

Ionic - How to store session token as globally (for app) accessible variable?

I know I can use localstorage or SQLite but I'm not sure how to exactly do that. In my app, I'm getting the session token in the Login controller where I make post request to the server and in return get session token. I'm not sure how to make this…
Vineonardo
  • 183
  • 1
  • 4
  • 12
9
votes
1 answer

Python: Redis as session backend to Beaker

Anyone had success with using Redis as Beaker backend? Can you tell me link or library how to do it? I am looking for any library which does this but could not get anything out of google search.
user90150
9
votes
2 answers

How to clear or delete a browser session with firefox developer tools

I used to be able to remove a browser session in Firefox developer tools. Now, it seems I can't? I've enabled viewing the storage tab and I can see the session but it no longer gives me the option to remove it. My reason for wanting to remove a…
drooh
  • 578
  • 4
  • 18
  • 46
9
votes
7 answers

Destroy PHP session on page leaving

I need to destroy a session when user leave from a particular page. I use session_destroy() on the end of the page but its not feasible for me because my page has pagination. My page is: abc.php?page=1 or abc.php?page=2 or abc.php?page=3. So, I need…
riad
  • 7,144
  • 22
  • 59
  • 70
9
votes
2 answers

Keep user state in Android

I am developing an Android app that needs to receive specific informations for each user. I made an authentication using GET and POST methods. Now I have the cookie delivered by the server when the username and password are correct. How do I store…
rlc
  • 5,809
  • 5
  • 38
  • 46
9
votes
1 answer

Undefined local variable or method 'session' in model test

I'm creating a Ruby on Rails application, and am trying to run a test involving my User model to see if the "Remember me" feature works. I'm using Rails' inbuilt cookies hash to store the cookies, and the session hash to store the current session.…
sarangj
  • 300
  • 2
  • 10
9
votes
3 answers

How can I set infinity session time out in asp.net project

I'm working on asp.net project. how can I increase the session timeout? (infinity timeout) Or should I do this on IIS? If it is possible, please explain.
Buddhika Samith
  • 305
  • 2
  • 7
  • 20
9
votes
3 answers

laravel csrf token mismatch exception after session timeout

in our laravel 5 app, the login is through ajax. if user logout and log back in before session expires, everything is fine. but if user logout and stay idle on that page until session is expired, user will get a csrfTokenMismatch exception if they…
shangsunset
  • 1,585
  • 4
  • 22
  • 38