Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/Code)
 Deleting forum Cookies
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Webbo
Average Member

United Kingdom
982 Posts

Posted - 31 January 2004 :  14:52:39  Show Profile  Visit Webbo's Homepage
Every now and again I get a user who cannot log in because they have a problem with their forum cookie.
They cannot delete the forum cookie by clicking the 'Log Out' button because they do not see it because in essence they're already logged out.
In addition to this, some people don't know how to delete cookies especially members who use the AOL browser only.

To get around this I have made a new file called 'pop_delete_cookie.asp'

In NotePad or other editor make a file and call it: pop_delete_cookie.asp

In it add the following then save the file in your forum folder >>

<%@ Language=VBScript %>
<%option Explicit
Response.Buffer=True
Dim objCookie
Response.Write "<p><font face=""arial"" size=""3"">Deleting cookies...</font><BR><BR>"
For Each objCookie In Request.Cookies
    Response.Cookies(objCookie).Expires = "September 1, 1999"
Next
Response.Write  "<p><font face=""arial"" size=""3"">Done.</font>" & vbNewLine & _
        	"      <script language=""javascript1.2"">self.opener.location.reload();</script>" & vbNewLine 
Response.Write  "<body onLoad=""setTimeout(window.close, 2000)"">" & vbNewLine
%>


In faq.asp find the following line (line 68):

		"                <li><span class=""spnMessageText""><a href=""#cookies"">Are cookies used?</a></span></li>" & vbNewLine & _


..and replace it with >>

		"                <li><span class=""spnMessageText""><a href=""#cookies"">Are cookies used & how can I delete them?</a></span></li>" & vbNewLine & _



Find the following lines (347 & 348):

		"                  <p>You may delete all cookies set by these forums in selecting the "logout" button at the top of any page." & vbNewLine & _
		"                  </font></p></td>" & vbNewLine & _


And replace with >>

		"                  <p>You may delete all cookies set by these forums by selecting the "logout" button at the top of any page.</font>" & vbNewLine & _
        	"                  <font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """ color=""" & strForumFontColor & """>Or alternatively by clicking this link: <a href=""javascript:openWindow('pop_delete_cookie.asp?')""" & dWStatus("Delete Cookies set by this Forum") & " tabindex=""-1""><acronym title=""Delete Cookies set by this Forum"">Delete Forum Cookies</acronym></a></font></p></td>" & vbNewline & _	


And that's it.

When a user has problem, all you have to do is direct them to the FAQ's and they can delete the forum cookie without going into Internet Explorer properties

Etymon
Advanced Member

United States
2385 Posts

Posted - 31 January 2004 :  22:46:10  Show Profile  Visit Etymon's Homepage
Thank you for the MOD, Webbo!

Very nice touch.

Etymon
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.2 seconds. Powered By: Snitz Forums 2000 Version 3.4.07