In my project i am using ajax and jquery. After going to a page via ajax without page reload i want to see the same page if the user refresh the browser. I used the cookie plugin inorder to solve. As it is not safe i am trying to do the same using session. I have dowloaded the jquery session plugin and initialized the session variable using the below satements.
var SESSION_URL = $.session("current_url",Url);
var SESSION_DATASTRING = $.session("dataString",dataString);
and i am getting the session value in the same jquery $(function) where it is initialised, through alert($.session("current_url");
But i am not getting this session value in an another jquery event like
How can i get the initialized session value in an another event.
Please help me. Thanks in advance.