Hi,
I have a strange problem.
Scenario:
When loading an x page. I am making an ajax call in jQuery to server
'latest' action. Now, when I set a session in 'latest' action. To check
check created session I made another ajax request to same 'latest'
action.
Here created session is nil.
code:
--------------------------sample.js------------------------------
$("#latest_activities").load("#{latest_activities_path}");
$('.get-activities').click(function(){
//ajax request to latest_activities_path
});
def latest
p session['test']
session['test'] = 'test'
end
I did got why it is not persisted.
Thanks,
Aashish
on 2012-08-10 10:03
Please log in before posting. Registration is free and takes only a minute.
Existing account
(Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
Log in with Google account | Log in with Yahoo account
No account? Register here.