I am trying to use java servlet repository instead of: cookie_store when working in Tomcat. My application works fine with: cookie_store, but when using: java_servlet_store nothing else is saved ...
This seems to work, however, when I store something in the servlet_request.session file, later I cannot get the value again ... It seems that it is not ...
In my session_store.rb:
require 'action_controller/session/java_servlet_store' NameApplication::Application.config.session_store :java_servlet_store
In my application application_controller.rb:
servlet_request.session.putValue(PROXYBRIDGEKEY, proxy_bridge)
seems to work
But later I try to get the value, and I get zero ...
servlet_request.session.getValue(PROXYBRIDGEKEY)
Any ideas what the problems might be here?
To make it clear that the value in the session really works (verified). With a new html request, getting the value no longer works. So there should be a problem with getting a cookie, I think ...
source share