Connecting Tech Pros Worldwide Help | Site Map

Remove cookie value when all browsers closed

Newbie
 
Join Date: Jan 2008
Location: Malaysia
Posts: 28
#1: 4 Weeks Ago
Miss/Mr. Programmer,

I have a idea to remove the cookie value from a website after all browser closed. It is like session kept in server and eliminate after all browser closed. My purpose is reducing browsing security issue through minimize the data resident in the cookie.

The reason i using the cookie instead of session because I used cookie in applying SSO (Single Sign On) for different web application server instead of single server.

I know we able detect a browser closed via onunload javascript, but i need to detect when i closed all browser. Please advice it.
Dormilich's Avatar
Moderator
 
Join Date: Aug 2008
Location: Leipzig, Germany
Posts: 3,642
#2: 4 Weeks Ago

re: Remove cookie value when all browsers closed


use the Cookie’s Discard flag.
Newbie
 
Join Date: Jan 2008
Location: Malaysia
Posts: 28
#3: 4 Weeks Ago

re: Remove cookie value when all browsers closed


You mean Cookie Discard property from .Net Library class?
I'm actually developing via the J2EE language so this cannot be done in my code.
Dormilich's Avatar
Moderator
 
Join Date: Aug 2008
Location: Leipzig, Germany
Posts: 3,642
#4: 4 Weeks Ago

re: Remove cookie value when all browsers closed


Quote:

Originally Posted by webster5u View Post

You mean Cookie Discard property from .Net Library class?

no, I mean the cookie’s discard flag. as defined in RFC 2965.
Reply


Similar JavaScript / Ajax / DHTML bytes