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

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: MOD Implementation
 One cookie for two domains (and one db)
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

MarcelG
Retired Support Moderator

Netherlands
2625 Posts

Posted - 20 September 2004 :  03:18:40  Show Profile  Visit MarcelG's Homepage
Oi.
I'm running www.oxle.com , and www.oxle.nl both from the exact same server, using the exact same db etc.
However, I noticed that people have to be logged in at both addresses to post. If you log in to just www.oxle.com you cannot post at www.oxle.nl without logging in.

Is it possible to change the cookie to such an extend that a user is automatically logged in to oxle.nl if he/she logs in to oxle.com et vice versa ?

I've tried 'Set cookie to forum' and 'Set cookie to website' but that didn't change a thing...

Any suggestion would be very much appreciated.

portfolio - linkshrinker - oxle - twitter

Classicmotorcycling
Development Team Leader

Australia
2085 Posts

Posted - 20 September 2004 :  05:07:46  Show Profile
Doesn't the cookie in Snitz work on what you have in your config.asp look for:

strCookieURL = Left(Request.ServerVariables("Path_Info"), InstrRev(Request.ServerVariables("Path_Info"), "/"))

(at about line 125 in a fresh copy) And hard code the name of the cookie in it. Correct me if I am wrong, but I think that line creates the name of the cookie. Rather than have a varibale that the Snitz cookie is, you would need to hard code it.

I hope that gives you something to go on.

Cheers,

David Greening
Go to Top of Page

DavidRhodes
Senior Member

United Kingdom
1222 Posts

Posted - 20 September 2004 :  06:01:00  Show Profile
Cookies are domain based, it'd be a major security bug if domains can read cookies of different domains

The UK MkIVs Forum
Go to Top of Page

MarcelG
Retired Support Moderator

Netherlands
2625 Posts

Posted - 20 September 2004 :  06:08:38  Show Profile  Visit MarcelG's Homepage
mmm..so David, if I understand correctly this would mean -> no fix.
that's a pity, but if that's how it is, that's how it is.

Just to be sure ; I cannot make it so that it creates 2 cookies ? One for oxle.com and one for oxle.nl ?

portfolio - linkshrinker - oxle - twitter

Edited by - MarcelG on 20 September 2004 06:09:48
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20595 Posts

Posted - 20 September 2004 :  06:46:25  Show Profile  Visit HuwR's Homepage
no you can't, the only way I know to do what you want is to use a http mapper like octagate, this would allow people to type in www.oxle.nl but the server thinks they typed in oxle.com


alternatively you could add a new default page to your webroot and check the domain they come in with and do a resonse.redirect to the other domain.
Go to Top of Page

MarcelG
Retired Support Moderator

Netherlands
2625 Posts

Posted - 20 September 2004 :  09:23:21  Show Profile  Visit MarcelG's Homepage
I am already checking the domain they used:
<%
if (Instr(Request.ServerVariables("SERVER_NAME"), "oxle.nl") > 0) then
	strOxleNL = "yes"
	strOtherNewsForum = strNewsForum
	strOtherNewsLinksForum = strNewsLinksForum
	strRATTDisplayName = "oxle.com"
	strOtherUrl = "http://www.oxle.com"
	strNewsForum = "89"
	strNewsFeedDisplayName = "NL/Nieuws"
	strNewslinksForum = "90"
	strNewslinksDisplayName = "NL/Krantenbak"
	strWeatherDisplayName = "het weer in nederland"
	strSMUpcomingBirthday = "binnenkort jarig"
	strSMRecentsBirthday = "jarig geweest"
	strSMBirthdayToday = "vandaag"
	strEventsDisplayName = "binnenkort"
	strWeblogsDisplayName = "de weblogs"
	strTTDisplayName = "de forums"
	strPollsDisplayName = "de peilingen"
	strAdText = " advertentie "
	strGoogleText = " zoek via google "
else
	strOtherNewsForum = "89"
	strOtherNewsLinksForum = "90"
	strRATTDisplayName = "NL/oxle"
	strOtherUrl = "http://www.oxle.nl"
	strAdText = " advertisement "
	strGoogleText = " search the web with google "
end if 
%>

In this way I 'customize' both sites, while they use the exact same db.

I think I've got an idea ...
-> if person logs in to www.oxle.com/login.asp I 'duplicate' the page to a new loginscreen openging www.oxle.nl/login.asp with the SAME values as entered on oxle.com/login.asp with an auto-close feature in it...It would be some sort of popup....that would be blocked...grr.

I guess I'll have to stick with duplicate logins.

portfolio - linkshrinker - oxle - twitter
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 1.8 seconds. Powered By: Snitz Forums 2000 Version 3.4.07