I’m trying do invalidate a java servlet session in an application.
The glassfish (v2) server is configured to use container based auth
which allows us to use the REMOTE_USER request variable.
However I’ve not yet figured out how to logout :).
The application is configured to use active_record_store for its
The app is running on jruby-1.2.0 and jruby-rack-0.9.4.
I’ve tried to use
java_session = java.servlet_request.getSession( false ) java_session.invalidate if java_session
But it errors out giving me “Invalid number of arguments (1 for 0)”
Removing the argument from the getSession and calling invalidate does
not seem to do anything.
Any help would be appreciated,