Wrox Programmer Forums
|
Access ASP Using ASP with Microsoft Access databases. For Access questions not specific to ASP, please use the Access forum. For more ASP forums, please see the ASP forum category.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access ASP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 26th, 2004, 09:30 AM
Friend of Wrox
 
Join Date: May 2004
Posts: 105
Thanks: 0
Thanked 0 Times in 0 Posts
Default erasing cookies

Hello...

I would like to plase a log out function on my web page where I would erase the cookie that is set when a user enters the site...
So please help me... It would be great if you could sent me the source code forv example!!!

Thank you in advance!


 
Old May 26th, 2004, 12:43 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Response.Cookies("MyValue") = "", set the value to nothing, or set the cookie to expire shortly after the user logs out, or something along those lines.
 
Old May 26th, 2004, 12:48 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

http://sislands.com/javascript/week10/asp/cookie.htm

This should solve your purpose. You can always search on google and get a lots of result related to that.

Hope that helps.
Cheers!

_________________________
-Vijay G
Strive for Perfection
 
Old May 26th, 2004, 12:52 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

Also go through the links listed there to get a better picture on how cookies work. You got to check if cookies are ON, coz, these are sttored and manipulated in the client side and the user can always disable that. So check for its state before trying to store/access cookies.

http://www.devasp.com/search/display/category44.html

A better solution can be SESSION object. But it depends on the hit rate. When the hit rate is expected in huge number, sessions are not advisable.
Anyways the call is yours.

_________________________
-Vijay G
Strive for Perfection





Similar Threads
Thread Thread Starter Forum Replies Last Post
erasing on a form!!!! JLN Pro VB.NET 2002/2003 0 July 13th, 2004 08:22 AM
Cookies shabboleth Beginning PHP 3 December 30th, 2003 10:32 AM
Cookies cjo ASP.NET 1.0 and 1.1 Basics 1 November 8th, 2003 02:38 PM
Help!About Cookies jelsen ASP.NET 1.0 and 1.1 Basics 2 September 9th, 2003 08:36 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.