Prepare for your Next Interview
|
Welcome to the Geeks Talk forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
This is a discussion on Killing Cookies within the Web Design forums, part of the Web Development category; Can someone specify me a method for killing cookies from Web page? I need an efficient method of doing this....
|
|||||||
| Web Design HTML, DHTML, XML, CSS, Browser Compatibility, Development feedback, and more. Web Design Issues and Problems |
![]() |
| LinkBack | Thread Tools | Display Modes |
|
|||
|
Re: Killing Cookies
You can either use predefined function for killing cookies or you can do it by setting the expiration date to some time in the past which makes the cookie to expire immediately and thus cookies are killed.
|
|
|||
|
Re: Killing Cookies
Php code: when deleting a cookie you should assure that the expiration date is in the past, to trigger the removal mechanism in your browser. Examples follow how to delete cookies sent in previous example: <?php // set the expiration date to one hour ago setcookie ("testcookie", "", time() - 3600); setcookie ("testcookie", "", time() - 3600, "/~rasmus/", ".example.com", 1); ?> for asp.net custom cookies killing see this link below creating a custom membership provider and membership user utilizing a data set table adapter
|
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Cookies | bvani | Web Servers | 4 | 04-04-2007 04:32 AM |