Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

ASP.NET Forum


You are currently viewing our ASP.NET Forum as a guest. Please register to participate.
Login



Reply
delete cokkies - login
Old 03-10-2011, 08:39 AM delete cokkies - login
madseason's Avatar
Experienced Talker

Posts: 35
Trades: 0
I have a login page made in asp (vbscript). The logout link is just a link to the the login page. My ideia is to go to the link + delete cokkies at same time. That way the user cant do return.

Is it a good ideia? How can it be done (delete cokkies).
madseason is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 03-10-2011, 12:22 PM Re: delete cokkies - login
chrishirst's Avatar
Defies a Status

Posts: 43,972
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
You can't actually delete the cookie from ASP, what you do instead is clear the values that show a user is already logged in.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 03-11-2011, 03:43 AM Re: delete cokkies - login
madseason's Avatar
Experienced Talker

Posts: 35
Trades: 0
Thanks for the reply.

You mean go back and clear the 2 txtbox (user and pass)?
madseason is offline
Reply With Quote
View Public Profile
 
Old 03-11-2011, 02:29 PM Re: delete cokkies - login
Experienced Talker

Posts: 39
Name: Josh Rasri
Location: Upstate NY
Trades: 0
Response.Cookies(CookieName).Expires = Date() - 1

Is that what you needed?
__________________
John Rasri - GotLiveChat.com

Please login or register to view this content. Registration is FREE
Reseller/White Label Program
gotlivechat is offline
Reply With Quote
View Public Profile Visit gotlivechat's homepage!
 
Old 03-15-2011, 06:04 AM Re: delete cokkies - login
chrishirst's Avatar
Defies a Status

Posts: 43,972
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
In the cookie or session you probably store some values that indicate the user has logged on successfully, maybe the username and a boolean value.
When they logout you set the boolean to false. If you are using sessions to maintain state between pages you would use:
Code:
<%session.abandon%>
Which would clear the session values thus effectively "logging out" the user.

The details really depend on how you are maintaining state in the first place.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to delete cokkies - login
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.16570 seconds with 11 queries