java - Sharing the session between Rails and Spring MVC -


in rails session stored in cookie , signed prevent forgery. looking if there best practices around getting rails cookie (and session) loaded spring mvc in way can read , used.

string[] parts = urldecoder.decode(cookie).split("--"); byte[] decoded = base64.decodebase64(parts[0].getbytes()); string checksum = parts[1]; string decoded_string = new string(decoded); 

this gives serialized hash - ideal if deserialized hash in java. however, hoping others might have tested or done similar , can warn against potential pitfalls.

related to: how can access rails' session in java app, how manage sessions in hybrid ruby/gwt system?

in particular example can share information between applications using database, example redis or other key-value storage.


Comments

Popular posts from this blog

jasper reports - Fixed header in Excel using JasperReports -

media player - Android: mediaplayer went away with unhandled events -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -