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
2 answers

how can I get sessions to work using redis, express & socket.io?

So I am trying to get Sessions to work inside my socket.on('connection', ...) I am trying to get this working using recent versions: Socket.io - 0.9.13, Express - 3.1.0 and latest versions of other modules. Anyway I have tried using both modules…
Josh Mc
  • 9,911
  • 8
  • 53
  • 66
9
votes
2 answers

How to create and manage session in iphone app?

I have an application which uses wcf web service and after successful login, i want to activate a session of 10 minutes. If user is idle or app is in background for 10 minutes then session should expire and app should ask for login details again. I…
Shaunak
  • 707
  • 1
  • 9
  • 29
9
votes
1 answer

AFNetworking Persisting Cookies Automatically

In: This Question it is said AFNetworking takes care of cookies automatically in the background, but in a Previous question I asked, I was having trouble keeping the session on the server that was made in php when I logged in. Once I closed(stop…
TMan
  • 4,044
  • 18
  • 63
  • 117
9
votes
7 answers

Security with PHP Sessions

I know this has been asked billions of times, but I'm super paranoid/OCD about the security of my coding. I'm working on a little project. The session data will only contain: user_id 1 user_name MyUsername logged_in true csrf_token…
user1453094
  • 373
  • 2
  • 7
  • 13
9
votes
2 answers

ASP.NET Session State Server vs. InProc Session

What is the overhead performance penalty for running Session State Server instead of InProc? Is it significant? I understand that you can restart w3wp with the state server and retain all session state - is that the only advantage over InProc?
Alex
  • 75,813
  • 86
  • 255
  • 348
9
votes
1 answer

Application_EndRequest not finding Session

I'm trying to set a cookie in Application_EndRequest in Global.asax.vb as suggested in ASP.NET OutputCache and Cookies I've written the following code, cookie gets ERROR value. Why isn't session available? Sub Application_EndRequest(ByVal sender As…
JNF
  • 3,696
  • 3
  • 31
  • 64
9
votes
3 answers

Yii session management

I am trying to set some session variable in Yii using the following code : $session=new CHttpSession; $session->open() ; $session->setSessionName('My Session') ; $session['sleep'] = 0 ; …
Varun Jain
  • 1,901
  • 7
  • 33
  • 66
9
votes
3 answers

Prepend user ID to all log messages in Rails

In order to help track user actions for debugging purposes, we are considering prepending the session's logged in user ID to every log message (when applicable). Our stack consists of Rails and Authlogic. I've tried a couple of different routes, but…
Ryan LeFevre
  • 643
  • 4
  • 12
9
votes
1 answer

When does session.gc_maxlifetime start counting

On every page load I run session_start() to resume the current session. When does the session.gc_maxlifetime start counting from? The first time session_start() is called and that session's cookie is set? Or does the timer restart every…
Tyson of the Northwest
  • 2,086
  • 2
  • 21
  • 34
9
votes
2 answers

How to prevent race conditions when writing/ reading joomla session variables from an external php script?

QUESTIONS Is the intermittent loss of session data likely to be due to a race condition?If no, what is likely to be the problem? How can I prevent race conditions when writing/ reading joomla session variables from an external php…
TryHarder
  • 2,704
  • 8
  • 47
  • 65
9
votes
1 answer

How can I access session attribute in Facelets page

I have implemented a login form using JSF and PrimeFaces. I used this example in the PrimeFaces showcase website. I have a Facelets page to show a dataTable. Now I need to integrate the above login form with this table page. So I added few lines in…
Tharaka Deshan
  • 1,349
  • 3
  • 15
  • 30
9
votes
2 answers

What is the best way to make "remember me" under php when using native sessions?

Previously i was creating additional cookie "rememberme" with unique hash, that was stored in the database, mapped to the user id. If user had such cookie - website tried to find it's value in database, and if it was found session was setting…
avasin
  • 9,186
  • 18
  • 80
  • 127
9
votes
7 answers

Pulling data off of sql table with php using sessions

I'm trying to pull data off my sql table with php unique to the session's ID, however I only get the position that the user is in when I echo anything out! ....

thedullmistro
  • 382
  • 7
  • 20

9
votes
12 answers

CodeIgniter session class not working in Chrome

I have created a login system in codeigniter project, which is working fine in Firefox but doesn't work in Chrome, data fetch and set for session but when this code redirect control to admin/dashboard, there we check session data again. If session…
ime.devdesks
  • 394
  • 3
  • 4
  • 13
9
votes
2 answers

Configure two cxf jaxrs clients to use the same session (cookies)

I want to connect to a REST server with a jaxrs client using apache cxf. The server has an url to authenticate and some other urls to do the actual stuff. After the login the server creates a session and keeps the connection open for 30 min. My…
1 2 3
99
100