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
1
vote
1 answer

Custom session state management

Can someone point me to example implementation for custom session state management ? I am looking for following approach "keep all the session state in database and keep only the keys in HttpSession object. " Can it be done using Spring ? TIA -Vin
Vinayak
  • 96
  • 7
1
vote
0 answers

Best Mechanism(Way) to Cache the data across application in client side app

I have a angular service call to webapi , if webapi is got down , have to load the data from cache and the cache is expire after 20 minutes. Which is better way to store the data? LocalStorage - store upto 5 MB and lifetime clear the data of…
Mohamed Sahir
  • 2,482
  • 8
  • 40
  • 71
1
vote
0 answers

Spring security sessionRegistry#getAllPrincipals returns empty after tomcat restart

I'm using spring security in my project which is deployed in tomcat server. I'm getting all logged in users using following method, @Autowired private SessionRegistry sessionRegistry; public List getAllActiveUsers() { String…
1
vote
1 answer

Getting error while reading value from property file in spring security:session-management tag

I need to implement session management in spring security but I am getting an error while deploying the application on tomcat. Application is trying to fetch invalid-session-url and expired-url property values from property file but getting error on…
1
vote
1 answer

Ignite Web Session Clustering design delima

I have design question about Ignite web session clustering. I have springboot app with UI. It clustered app ie multiple instance of springboot app behind the load balancer. I am using org.apache.ignite.cache.websession.WebSessionFilter()to…
1
vote
0 answers

Spring, Hibernate session management

Currently i am using Hibernate, Spring and postgres as database in my application. Unfortunately the connection to the database is keep on increasing. Every method in the DAO Implementation class is increasing the connection count. Below is the…
1
vote
1 answer

View active user sessions

Is it possible to view a list of active user sessions on a couchdb server? There doesn't seem to be any mention of such a feature in the couch docs (http://docs.couchdb.org/en/2.0.0/api/server/authn.html#api-auth-session,…
Armand
  • 23,463
  • 20
  • 90
  • 119
1
vote
1 answer

Using redis in spring boot application with separate IdP server

I have a spring boot application which logs in by making a call to an IdP server. I receive a token from this IdP server when the login is successful. This token has to be used for all further interactions till the user logs out or the session…
Aashray
  • 2,753
  • 16
  • 22
1
vote
1 answer

spring security session times out

I am using spring security 4.1, the issue that i face is when i try to login i am sent back to the session expired page several times. I have tried multiple things like adding my own HttpSessionListener also by adding …
1
vote
1 answer

Why session ID is not as same in all the webpages?

I have one huge doubt Why session ID is not as same on all the webpages? CODE: In webpage1.aspx.cs String sess1 = Session.SessionID.ToString(); In webpage2.aspx.cs String sess2 = Session.SessionID.ToString(); When I load my webpage1.aspx, it…
Suganth G
  • 5,136
  • 3
  • 25
  • 44
1
vote
1 answer

OpenDocument used from BI launchpad does not access current user session

Issue: A Dashboard (created in SAP Dashboards) has URL Buttons set up with OpenDocument URLs as links. When this ‘landing page dashboard’ is opened from the BI Launchpad (whether it’s saved as your default/home page or accessed directly from…
1
vote
0 answers

Shiro Session management for Spring web app

I have a web application that I would to deploy on multiple servers. I would like to take advantage of shiros session management to persist session into an external datastore. I have done everything in the documentation but somehow, my spring beans…
tigg
  • 107
  • 8
1
vote
1 answer

Cross browser session in web application

I have web application ( liferay based ) logged in to Firefox also I have another legacy application which runs only on IE. Is there any way I can redirect user from Firefox to IE after logging in to firefox, providing link to redirect user to IE in…
1
vote
0 answers

Glassfish persisting HTTP Sessions into database

I need a way to configure Java HTTP Sessions to be stored into a common/centralized database, regardless of performance. Is there anyway to achieve this using web.xml or glassfish-web.xml? How can I do it?
1
vote
3 answers

How to login one time in android application?

I am allowing registered users to access the app. The users have to login every time they open the app. So I want to know how to login the app single time like facebook or whatsapp?
Prasanna
  • 195
  • 2
  • 16