Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Cookie toss from one site to another
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Cookie toss from one site to another

 Post Reply Post Reply
Author
garyn View Drop Down
Newbie
Newbie


Joined: 08 April 2006
Location: Canada
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote garyn Quote  Post ReplyReply Direct Link To This Post Topic: Cookie toss from one site to another
    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
Back to Top
dpyers View Drop Down
Senior Member
Senior Member


Joined: 12 May 2003
Status: Offline
Points: 3937
Post Options Post Options   Thanks (0) Thanks(0)   Quote dpyers Quote  Post ReplyReply Direct Link To This Post Posted: 21 May 2006 at 6:54am
Deleted previously posted info... found a better answer at

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


Edited by dpyers - 21 May 2006 at 7:17am

Lead me not into temptation... I know the short cut, follow me.
Back to Top
garyn View Drop Down
Newbie
Newbie


Joined: 08 April 2006
Location: Canada
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote garyn Quote  Post ReplyReply Direct Link To This Post 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:
 
 
Thanks again for your help.
 
Gary


Edited by garyn - 21 May 2006 at 4:28pm
Back to Top
dpyers View Drop Down
Senior Member
Senior Member


Joined: 12 May 2003
Status: Offline
Points: 3937
Post Options Post Options   Thanks (0) Thanks(0)   Quote dpyers Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
wistex View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 30 August 2003
Location: United States
Status: Offline
Points: 877
Post Options Post Options   Thanks (0) Thanks(0)   Quote wistex Quote  Post ReplyReply Direct Link To This Post Posted: 22 May 2006 at 5:41pm
Would you be able to use Borg's built-in API for this?
 
 
Even if it doesn't do 100% of what you need, it might reduce the amount of coding you have to do.


Edited by wistex - 22 May 2006 at 5:43pm
Back to Top
garyn View Drop Down
Newbie
Newbie


Joined: 08 April 2006
Location: Canada
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote garyn Quote  Post ReplyReply Direct Link To This Post 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 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
Back to Top
wistex View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 30 August 2003
Location: United States
Status: Offline
Points: 877
Post Options Post Options   Thanks (0) Thanks(0)   Quote wistex Quote  Post ReplyReply Direct Link To This Post Posted: 26 July 2006 at 11:16pm
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.