Site Cookie MOD
Author: Etymon
Date: March 10, 2006
I'm not really sure if the title is appropriate for the code, but in working with the Universal Login MOD, I was trying to get forum variables to display appropriately and in real time on my external (non-forum) pages within my website.
I created a work-around to the strCookieURL variable found in config.asp.
For a clean install of Snitz 3.4.05 look at line 125 for the following:
strCookieURL = Left(Request.ServerVariables("Path_Info"), InstrRev(Request.ServerVariables("Path_Info"), "/"))
To have your forum variables work outside of your forum pages replace the code above with the code below:
if Instr(Request.ServerVariables("Path_Info"), "forum/") = 0 then
strCookieURL = Left(Request.ServerVariables("Path_Info"), InstrRev(Request.ServerVariables("Path_Info"), "/")) & "forum/"
else
strCookieURL = Left(Request.ServerVariables("Path_Info"), InstrRev(Request.ServerVariables("Path_Info"), "/"))
end if
What this is basically saying is, make the cookie URL for the web pages within the forum the same cookie URL for the web pages outside of the forum.
This MOD was created as a result of working with the Universal Login MOD installed. Whether Universal Login MOD is necessary for the Site Cookie MOD to work, I have no idea. Suggestions? Comments? Concerns? Please post below. <