How to Test the Cookies and Memory leakages?(i.e does the cookies expired or not and about memory leakage)?

Showing Answers 1 - 6 of 6 Answers

goksn

  • Aug 31st, 2009
 

Testing the cookies: Cookies can be tested in two ways

1. Tampering the cookies
2. Deleting the cookies (eitehr through some program or manually)

After tampering/deleting the cookies, the program should not work as expected (if the application uses cookies).

  Was this answer useful?  Yes

TESTING COOKIES

In simple terms, a cookie is information that a web service provider places on a hard drive so that it can remember something about its user at a later time.  Several ways to test cookies are:

1) Disabling cookies
2) Selectively rejecting cookies
3) Corrupting cookies
4) Cookie encryption

TESTING FOR MEMORY LEAKAGES

To say it simply, when a program needs to store temporary information during execution, it requests a block of memory from the system.  Since there is a fixed amount of system memory, if one application uses all of it, other applications won't be able to use it.  Memory leaks occur when an application doesn't return this available memory back to the system.  Memory leaks cause overall system response times to become increasingly sluggish.  If you see a message like "You computer is running low of virtual memory," the cause may be a memory leak.

Memory leaks are found by demonstrating there is an overall increase in committed system memory (memory used by various application) or in memory devoted to a specific application and determining the location in source code that the un-freed allocation of memory occurs. 

There are tools out there to help isolate memory leaks. In the Micosoft arena, you can use PerfMon to examine the performance counters associated with an application.  On computers running Windows Vista, you can check for memory leakage by running the Memory Diagnostics Tool.  Do this:

1) Click the Windows "Start" button
2) In the Search box at the bottom of the Programs menu, type "memory"
3) Select the Memory Diagnostics Tool
4) Select the option that reads, "Reboot Now and Check for Problems"

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions