what is session and cookies

Answer Posted / poornimad

Session is used for maintaining the particular value
throughout the session..(brower closed)

e.x: session[:value]="poornimad"

this values is not changed until the brower closed..

Cookies:
*********
This is used to store the values in the Browser..this
value is not delete till the cookies are deleted..This
cookies concept is same as Java cookies.The concept is same.

Is This Answer Correct ?    19 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain about Dig, Float and Max?

524


what is Mixin in Rails?

531


Mention the differences between the observers and callbacks in ruby on rails.

472


Do you know what is cross-site request forgery (csrf) and how rails is protected against it?

457


Tell me what is coc in rails?

603






Explain rails migration.

535


Do you know what are the types of caching used in rails, what are they?

423


how you can create a controller for subject?

503


How would you create a controller for the subject?

446


Explain coc in rails?

561


What role do sub-directory app/helpers and app/controllers play?

471


Explain me what is the purpose of rjs in rails?

487


What is the main difference between procs and blocks?

467


Explain how Rails implements Ajax?

471


what is a rails migration? Write up a short example of a simple rails migration with a table called customers, a string column called name, and a text column called description?

486