Searching for "cookies"

Q:

A Rs 1000 box of cookies is offered at 10% discount and a Rs 400 bar of chocolate at 8% discount. If we buy 2 boxes of cookies and 3 bars of chocolate, what is the effective discount we get (in %)?

A) 9 B) 9.25
C) 8.75 D) 8.5
 
Answer & Explanation Answer: B) 9.25

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Percentage
Exam Prep: Bank Exams

Q:

__________ cookies are also known as transient cookies.

A) Persistent B) Second party
C) Session D) Third party
 
Answer & Explanation Answer: C) Session

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Computer
Exam Prep: AIEEE , Bank Exams
Job Role: Bank Clerk , Bank PO

Q:

What are cookies ?

Answer

Cookies are small pieces of information that are stored in a browser. It keeps track of user preference, like what sites are visited, what keywords are used, among others.

Report Error

View answer Workspace Report Error Discuss

Q:

How to set cookies in PHP?

Answer

The function setcookie() is used to define a cookie that is to be sent along with HTTP headers. The cookie must be sent prior to any output from the script as is the protocol restriction. After setting the cookies, they can be used when the next page is loaded by using $_COOKIE or $HTTP_COOKIE_VARS arrays.

Report Error

View answer Workspace Report Error Discuss

Subject: PHP

Q:

What is the procedure to configure the web browser to accept or reject cookies?

Answer

- The web browser visits a website using the HTTP and then it keeps the track of the identity of the user visiting the web page.


- The cookies of HTTP get stored with the personal information of the user and it doesn’t accept the information. 


- Users accept the cookies as by rejecting all the cookies will load the web page in longer time and it will not be desired by the users. 


- Even if the cookie is being rejected a session cookie is being kept for use as it is the provision given to the web browser to use it. 


- The cookies gets stored temporary basis depending on the user of accepting or rejecting it and it basically saves the session so that the duration of the page load can be reduced.

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

Q:

Where are cookies actually stored on the hard disk?

Answer

The storage of cookies on the hard disk depends on OS and the browser. The Netscape navigator on Windows, the file cookies.txt contains all the cookies. The path is :


c:\Program Files\Netscape\Users\username\cookies.txt


 


The Internet Explorer stores the cookies on a file by name username@website.txt is


c:\Windows\Cookies\username@Website.txt

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

Q:

How to set cookies?

Answer

setcookie('variable','value','time');
variable - name of the cookie variable
value     - value of the cookie variable
time       - expiry time

Example:
<?php
setcookie('Test',$i,time()+3600);
?>
Test - cookie variable name
$i - value of the variable 'Test'
time()+3600 - denotes that the cookie will expire after an one hour

Report Error

View answer Workspace Report Error Discuss

Subject: PHP

Q:

Where are cookies actually stored on the hard disk?

Answer

This depends on the user's browser and OS.
In the case of Netscape with Windows OS,all the cookies are stored in a single file called

cookies.txt
c:\Program Files\Netscape\Users\username\cookies.txt
In the case of IE,each cookie is stored in a separate file namely username@website.txt.
c:\Windows\Cookies\username@Website.txt

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology