Print Page | Close Window

Cookie toss from one site to another

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums Modifications
Forum Description: Mod's and Add-on's for Web Wiz Forums.
URL: https://forums.webwiz.net/forum_posts.asp?TID=19966
Printed Date: 29 March 2026 at 12:52pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Cookie toss from one site to another
Posted By: garyn
Subject: Cookie toss from one site to another
Date Posted: 21 May 2006 at 4:09am
Hi Everyone,
 
I have a main site that includes WWF 8 for my support forums.  What I have done is create scripts that when a new user registers on my main site, they are added as an active member of the forum.
 
What I want to do now is to eliminate the requirement for them to login once they login on my main site and click on a link to enter the forums.
 
The easiest way I can think of is to add the WWF cookie addition to my login pages but for some reason I am not able to get it to work.  Any ideas on what would work best and if you have something, can you provide source so I can see how it was done?
 
Thanks in advance for the help.
Gary
gary @ webport.ca



Replies:
Posted By: dpyers
Date Posted: 21 May 2006 at 6:54am
Deleted previously posted info... found a better answer at

http://www.15seconds.com/issue/971108.htm - http://www.15seconds.com/issue/971108.htm


-------------

Lead me not into temptation... I know the short cut, follow me.


Posted By: garyn
Date Posted: 21 May 2006 at 4:25pm
Thanks, that helped.  I ended up using my main site to lookup the UID from the WWF MDB.  Then when a user clicks on the link for "Support" at the top of the page, the UID is appended to the page call.  Not really fancy but functional, here is what I did:
 
In my website page:
 
<!--#include file="Connections/forumconn.asp" -->
set rs1=server.createobject("adodb.recordset")
rs1.open("select * from tblAuthor where Username='"& session("SL_Username") &"'"),session("forumconn")
session("UID")=rs1("User_code")
rs1.close
End If
 
Then in the WWF default.asp page:
 
if request("UID")<>"" then
Response.Cookies("WWF")("UID") = request("UID")
Response.Cookies("WWF")("LV") = Now()
Response.Cookies("WWF").Expires = DateAdd("yyyy", 1, Now())
end if
 
Then in the main website page that calls/links to the forum:
 
<A HREF=" UID - http://support.ultimatehelpdesk.net/default.asp?UID=<%=session("UID")% >">
 
Thanks again for your help.
 
Gary


Posted By: dpyers
Date Posted: 21 May 2006 at 5:26pm
That looks like an elegant approach... simple yet thorough.

-------------

Lead me not into temptation... I know the short cut, follow me.


Posted By: wistex
Date Posted: 22 May 2006 at 5:41pm
Would you be able to use Borg's built-in API for this?
 
http://forums.webwiz.net/forum_posts.asp?TID=19621 - http://forums.webwiz.net/forum_posts.asp?TID=19621
 
Even if it doesn't do 100% of what you need, it might reduce the amount of coding you have to do.


-------------
http://www.wistex.com" rel="nofollow - WisTex Solutions
http://www.caribbeanchoice.com/forums" rel="nofollow - CaribbeanChoice Forums


Posted By: garyn
Date Posted: 22 May 2006 at 5:54pm

That API only creates users in the forums from a persons main site does it not?  If that is the case, that does not solve the problem of requiring the person to login only once and that being the main site. 

I have the main site on the one sub-domain of http://www.ultimatehelpdesk.net - www.ultimatehelpdesk.net  and have the forums at support.ultimatehelpdesk.net.  That is where the problem lies...  I create a cookie for the main site and when I put the WWF cookies in as well, they are not recognized when the user goes to the forums.  This happens even when I use the response.cookies("UID").Domain=".ultimatehelpdesk.net" on the page.
 
Gary


Posted By: wistex
Date Posted: 26 July 2006 at 11:16pm
Some servers may require you to enable it on the server.
 
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/csvr2002/htm/cs_sp_security_uvmp.asp - http://msdn.microsoft.com/library/default.asp?url=/library/en-us/csvr2002/htm/cs_sp_security_uvmp.asp


-------------
http://www.wistex.com" rel="nofollow - WisTex Solutions
http://www.caribbeanchoice.com/forums" rel="nofollow - CaribbeanChoice Forums



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net