Questions tagged [session-management]

Use tag when there are questions specific to session management in any domain (web, mobile, etc)

As per introduction of a Session:

Session management is the technique used by the web developer to make the stateless HTTP protocol support session state by making use of session variables.

For example, once a user has been authenticated to the web server, the user's next HTTP request (GET or POST) should not cause the web server to ask for the user's account and password again.

298 questions
6
votes
1 answer

How to use a shiro native session in a grails web application?

Currently, I am using the default HttpSession object in both controllers and gsp pages: In controllers: ... session.mykey = anObject; // adding an object to session ... if (session.otherkey) { // performing some checking In GSPs: ...
r0drigopaes
  • 103
  • 1
  • 8
6
votes
3 answers

WebApp Session Management using Ehcache

In my project I am using ehcache to store loggged in user details and some other information (which app will use this at runtime instead of fetching from db). The following is my ehcache configuration:
Ramki
  • 179
  • 2
  • 4
  • 12
6
votes
1 answer

How to run query on session end?

I have query that should run on session end. If there is record that is tied to user account then I would like to remove that record. I use session scope to store users ID's. Once user manually logs out or their session timed out this query should…
espresso_coffee
  • 5,980
  • 11
  • 83
  • 193
6
votes
1 answer

Spring security concurrency control with custom UsernamePasswordAuthenticationFilter

As per the new requirement i have created custom UsernamePasswordAuthenticationFilter to capture additional parameters from the login page. As expected my config was working fine. I'm able to retrieve additional parameters in filter and saving to…
Srikanth
  • 534
  • 1
  • 7
  • 20
6
votes
3 answers

tipfy for Google App Engine: Is it stable? Can auth/session components of tipfy be used with webapp?

I am building a web application on Google App Engine that requires users to register with the application and subsequently authenticate with it and maintain sessions. I don't want to force users to have Google accounts. Also, the target audience…
6
votes
1 answer

Session Management with Windows Authentication

In an ASP.NET web app, using Integrated Windows Authentication, is the session tied to the windows identity? In other words, if I login (using IWA) to the app, and the app stores some "stuff" in my session, is this stuff accessible by session id…
5
votes
1 answer

What is the usage of Session.Merge method in NHibernate?

What is the usage of Session.Merge method in NHibernate? When can we use of this method?
masoud ramezani
  • 22,228
  • 29
  • 98
  • 151
5
votes
3 answers

Rails: tracking a user's ID

In my Rails app, I have a login page. After that person logs in, what is the best way for my app to continue tracking the person that has logged in. For example, if the user moves to different pages, my controllers/actions will lose track of that…
alamodey
  • 14,320
  • 24
  • 86
  • 112
5
votes
2 answers

GWT session management

I don't too much about gwt session on java. I've some doubts about it. Anyone can check if the implementation below is the way it needs to be done. public class ServiceImpl extends RemoteServiceServlet implements Service { void…
Noor
  • 19,638
  • 38
  • 136
  • 254
5
votes
2 answers

How to find out what open sessions my servlet based application is handling at any given moment

I need to write a servlet that, when called, gets information about a list of the currently opened sessions. Is there a way to do this?
Yevgeny Simkin
  • 27,946
  • 39
  • 137
  • 236
5
votes
2 answers

Python Module for Session Management

Is there any equivalent module for session management like Perl's CGI::Session or Apache::Session ? (I know most python web frameworks have their own implementations, but I am looking for a stand alone module that could be used with any python…
Sam
  • 1,358
  • 4
  • 16
  • 30
5
votes
1 answer

Session Management using Spring Security: Concurrent sessions

I have developed a web application using spring security. For login it gets access from LDAP. Now I want to manage the session using spring security itself, I can see by using authentication.getName() I am getting the username and I can also get the…
Ruby
  • 873
  • 5
  • 20
  • 47
5
votes
4 answers

How to store spring security session information in redis?

I am using Spring security for Authentication and Authorization in my application. I am using Neo4j database as backend and implemented userDetailsService for authentication. However, whenever my application restarts, user is forced to login once…
Abdul Azeez
  • 1,073
  • 4
  • 13
  • 21
4
votes
1 answer

NHibernate / Castle.ActiveRecord ; Session-Management ; WinForms

my first real (not test) NHibernate/Castle.ActiveRecord project is developing quickly. I am working with NHibernate/Castle.ActiveRecord about one month now but still have not a real idea how to handle Sessions in my WindowsForms application. The…
4
votes
2 answers

Logging out a user's other sessions in ASP.NET MVC3 with Forms Authentication

I am building an ASP.NET MVC3 app using Forms Authentication and I'd like to log out all existing sessions for a user when that user logs in. I'm trying to prevent multiple people at different workstations from logging in and working under the same…
awright
  • 1,224
  • 1
  • 13
  • 23
1
2
3
19 20