Hello all,

Let me give a brief background before asking a question:
I have an application thats using "Spring-security" for login authentication and the store is maintained using the RESTURL methods.

Now whenever user opens a new session in the browser and access the application, the login page appears. Upon successful authentication, user would be directed to the actual page using the "j_spring_security_check" handler.

Problem: Upon successful login that happens in "login.js" I get the userinfor object from the server. How do i pass that object to the "mainpage.js" that hosts the application. Basically how do i store the userinfo object so that when the application is launched i can get the user info page with the server objects.

Thanks in advance