Is there a way to get the rails session cookie from the client via Java Script and then send it over an AJAX request to prove identity?
I'm trying to implement an edit to a rails model via Javascript and JQuery. I'm concerned about malicious users sending post requests to the rails app and editing models so I want to check the current_user stored in the rails session. Is it possible to send this session over AJAX and use it on the rails side?