What is the difference between sessions and flash?

Answer Posted / anbuselvan.v

Session is only for store the small amount of user
data,which data not stored permanently that's when we logged
out from our application.. which session value will removed.
But Flash is used to display the some messages like error
message and useful information messsages in view pages...

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Tell us what is the difference between redirect and render in ruby on rails?

455


What are the steps involved in writing and setting up an application in ruby on rails?

446


Explain the controller in rails?

477


In how many ways you can create rails layout http response.

424


What is unit testing (in classical terms)? What is the primary technique when writing a test ?

537






How many types of relationships does a model has?

477


Why ruby on rails is used for?

486


What is the current version of ruby on rails?

467


What can Rails Migration do?

486


Do you know what is rake in rails?

467


What are models in rails?

465


Explain me what is the difference between concern and application_controller.rb in ruby on rails?

454


How many types of variables are available in ruby class?

490


List out what can Rails Migration do?

521


What is the difference between delete and destroy ?

473