Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa JSP-Interview-Questions Differences between session and cookie
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


Vijay Kumar
Differences between session and cookie
1 Answer(s)      4 years and a month ago
Posted in : JSP-Interview Questions


What are the differences between session and cookie?


Advertisement
View Answers

October 28, 2010 at 6:40 PM


Session is stored in server but cookie stored in client. Session should work regardless of the settings on the client browser. There is no limit on the amount of data that can be stored on session. But it is limited in cookie. Session can store objects and cookies can store only strings. Cookies are faster than session.



Related Tutorials/Questions & Answers:
Differences between session and cookie
Differences between session and cookie  What are the differences between session and cookie?   Session is stored in server but cookie.... But it is limited in cookie. Session can store objects and cookies can store only
Differences between HashMap and Hashtable?
Differences between HashMap and Hashtable?  Differences between HashMap and Hashtable
Advertisements
Is session depend on cookie ???
Is session depend on cookie ???  Since I created one session & as we say that session store at server side that means if I clear browser cookie... the cookie then my user logged out that means there is something behind session
Write cookie and session to textfile?
Write cookie and session to textfile?  I want to store all data from user submisstion into a textfile, include session and cookie. Thanks
cookie and session dependency
cookie and session dependency  Hi, I am currently working on a project in travel domain. Throughout the application, we have not used cookie for session tracking but the case when browser cookie is disabled, session value differs
What are the differences between EJB and Spring
What are the differences between EJB and Spring   Hi, What are the differences between EJB and Spring Thanks
What are the differences between require and include, include_once?
What are the differences between require and include, include_once?  What are the differences between require and include, include_once
differences between cell spacing and cell padding
differences between cell spacing and cell padding  What are the differences between cell spacing and cell padding
differences between GET and POST methods in form submit
differences between GET and POST methods in form submit  What are the differences between GET and POST methods in form submitting, give the case where we can use GET and we can use POST methods
How to manage cookie in between two JSP Pages
How to manage cookie in between two JSP Pages  How to manage cookie in between two JSP Pages   you can set cookies in response object e.g.response.addCookie(new Cookie("userName","Password")). Chandraprakash Sarathe
differences between require and include, include_once.
differences between require and include, include_once.  What are the differences between require and include, include_once?   Hi friends, Differebne 1: The include_once() function includes and evaluates the specified
Differences between OLAPDataGrid and AdvancedDataGrid
Differences between OLAPDataGrid and AdvancedDataGrid: There are several differences which are following. 1. OLAPDataGrid control does not have a column dragging. 2. OLAPDataGrid control cell has a data which is a result of OLAPQuery
How many cookie object we can store in a session? is there any limit?
How many cookie object we can store in a session? is there any limit?  How many cookie object we can store in a session? is there any limit
differences
differences  what is the difference between i++ and ++i
Differences between the String, StringBuilder, and StringBuffer classes
Differences between the String, StringBuilder, and StringBuffer classes StringBuffer versus String Java provides the StringBuffer and String classes.... The significant performance difference between these two classes is that StringBuffer
What are the differences between mysql_fetch_array(), mysql_fetch_object(), mysql_fetch_row()?
What are the differences between mysql_fetch_array(), mysql_fetch_object(), mysql_fetch_row()?  What are the differences between mysqlfetcharray(), mysqlfetchobject(), mysqlfetchrow
difference between session scope and request scope
difference between session scope and request scope   What is the difference between session scope and request scope when saving formbean
Persistent Cookie
Persistent Cookie  What Is a Persistent Cookie?   Hi friends, A persistent cookie is a cookie which is stored in a cookie file permanently... and when to use persistent cookies based on their differences: Temporary cookies can
Difference Between ServletConfig And ServletContext
Difference Between ServletConfig And ServletContext Here we will see how the ServletConfig And ServletContext are different from each other. Most... will demonstrate you the difference between ServletContext and ServletConfig web.xml
Delete Cookie
the cookie through setting session.  In the given example, we have set the value of cookie after one month of generating and before one hour of system date.  For deleteing the cookies, you will have to set the cookie expire time ahead
Session
;A servlet session is created and stored on the server side. The servlet container keeps.... To the maintain the session, Web clients must pass back a valid session identifier as a cookie header value or dynamically generated URL parameter
Cookie in jsp
Cookie in jsp  Define Cookie in jsp ?   The cookie file is a file that resides on the client machine. It contains data passed from web... returns. The web site only has access to the part of the cookie file that represents
differences - Java Beginners
differences  What are the differences between structured programming and object oriented programming?  Hi Friend, Difference between... dependency between the variables and the program whereas object oriented programming
How to destroy a cookie?
How to destroy a cookie?  How to destroy a cookie
What Is a Persistent Cookie?
What Is a Persistent Cookie?  What Is a Persistent Cookie?. Explain
How to reset a cookie?
How to reset a cookie?  How to reset a cookie
set cookie in jsp
set cookie in jsp  How set cookie in jsp ?   Cookie... cookie to identify the user in the next time visit.Example : <% Cookie cookie = new Cookie("ClientName","Roseindia"); cookie.setMaxAge(3600
session
session  is there any possibility to call one session from another session
session
session  is there any possibility to call one session from another session
Session
Session   how to session maintaining in servlet with use of hidden fieds
session
session  Session management in Java
Advertisements
 

 

 

DMCA.com