GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Microsoft  >  ASP
Go To First  |  Previous Question  |  Next Question 
 ASP  |  Question 55 of 147    Print  
How Many Types of Cookies
A. 3
B. 2
C. 1
D. 4



  
Total Answers and Comments: 4 Last Update: November 17, 2006   
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
August 28, 2005 23:44:46   #1  
jyothi        

RE: How Many Types of Cookies
there r two types of cookies.

option :B

 
Is this answer useful? Yes | No
March 21, 2006 02:09:33   #2  
Vikas Verma        

RE: How Many Types of Cookies

There are two types of cookies that can be enabled on your browser.

1) Cookies that are stored on your computer.
These are the cookies that allow you to leave a site but have it retain your login information. One such example is tek-tips.com and how you can persist your information across sessions.

2) Cookies that are left on a per session basis.
These cookies are synonymous with Session variables and what have you. A new session cookie is made for each new visit that you have to any webserver. These session cookies last until either the session timeout/abandon or you close your browser.

You can disable the 1st cookie and enable the 2nd which in turn allows you to use Sessions but not to store a cookie to remember someone's login information.

So what happens if you disable both types of cookies? Well you won't be able to Response.Cookie anything. But more importantly the behavior of Sessions turns a little screwy.

The webserver will send out new per-session cookies for each page that you visit so any user with all cookies turned off will have a session id. The problem is that this session id will only last for that page view and will not be persisted across multiple page views on your site (which is why it is so difficult to check for Session availablity on the server-side).

So to sum up -
there are two types of cookies:
1) persists data until explicitly deleted (or expired)
2) persists data until session abandon/timeout or browser closes.


 
Is this answer useful? Yes | No
July 22, 2006 06:21:14   #3  
shriramesh Member Since: July 2006   Contribution: 12    

RE: How Many Types of Cookies

two types of cookies


 
Is this answer useful? Yes | No
November 17, 2006 06:03:30   #4  
Gaurav        

RE: How Many Types of Cookies
There are 2 types of cookies: (1) Session Based which expire at the end of the session.
(2) Persistent cokkies which dont exipre(Stored in your hard disk).

 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape