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)
 MOD Set Cookie to Domain for Multiple Web Servers
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Reinsnitz
Snitz Forums Admin

USA
3545 Posts

Posted - 28 April 2003 :  09:58:08  Show Profile  Visit Reinsnitz's Homepage  Send Reinsnitz an AOL message  Send Reinsnitz an ICQ Message  Send Reinsnitz a Yahoo! Message
How would it work in seting a cookie to a domain instead of website or forum.

I.E.
Forum = www.freeworldsleague.com/forum/<anything>
Website = www.freeworldsleague.com/<anything>
Domain = <anything>.freeworldsleague.com/<anything>

I know this is wicked simple, but figured if someone knows the answer off the tips of their mind I might as well hear it from you

(the following added after the question! WOOOT!)
Well... now I have the answer for all of us!

Only Two Lines of code need to be entered. This is a hard code solution, but it works like a charm! And the only bad side effect is that your users may need to delete their cookie before resuming proper use of the forums (or it may work just fine).

inc_fun_common.asp ~ line 185

sub doCookies(fSavePassWord)
	if strSetCookieToForum = 1 then
		Response.Cookies(strUniqueID & "User").Path = strCookieURL
	else
		Response.Cookies(strUniqueID & "User").Path = "/"
	end if
	Response.Cookies(strUniqueID & "User").Domain = ".freeworldsleague.com"
	Response.Cookies(strUniqueID & "User")("Name") = strDBNTFUserName
	Response.Cookies(strUniqueID & "User")("Pword") = strEncodedPassword
	'Response.Cookies(strUniqueID & "User")("Cookies") = Request.Form("Cookies")
	if fSavePassWord = "true" then
		Response.Cookies(strUniqueID & "User").Expires = dateAdd("d", intCookieDuration, strForumTimeAdjust)
	end if
	Session(strCookieURL & "last_here_date") = ReadLastHereDate(strDBNTFUserName)	
end sub




sub ClearCookies()
	if strSetCookieToForum = 1 then
		Response.Cookies(strUniqueID & "User").Path = strCookieURL
	else
		Response.Cookies(strUniqueID & "User").Path = "/"
	end if
	Response.Cookies(strUniqueID & "User").Domain = ".freeworldsleague.com"
	Response.Cookies(strUniqueID & "User") = ""
	Session(strCookieURL & "Approval") = ""
	Session.Abandon
	'Response.Cookies(strUniqueID & "User").Expires = dateadd("d", -2, strForumTimeAdjust)
end sub

Reinsnitz (Mike)
  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