What is the difference between sessions and flash?

Answer Posted / milind kanchan

Session is for the application i.e If user logs in the
session will be applied for the user.
Flash is valid from one request to other i.e if the page is
redirected from one page to other,its valid in within this
request.

Is This Answer Correct ?    23 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the role of sub directory app/controllers and app/helpers.

489


Explain the advantages of ruby on rails?

486


What is rails active record?

466


Mention the types of variables available in Ruby Class?

560


How can you run rails without creating databases?

397






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

451


how can you declare a block in Ruby?

494


Write the command to run the migration.

490


Explain the controller in rails?

470


How will be the future for ruby on rails?

473


What is the main function of helpers used in ruby on rails?

463


what is rake in Rails?

513


Explain how you can run rails application without creating databases?

439


how does ruby on rails use the model view controller (mvc) framework?

441


How do I find only duplicate entries in a database table?

591