Simple Machines Community Forum

General Community => Scripting Help => Aiheen aloitti: SleePy - marraskuu 09, 2006, 10:58:38 IP

Otsikko: Cookies
Kirjoitti: SleePy - marraskuu 09, 2006, 10:58:38 IP
I am drawing a blank here and can't think of my answer..

Where again does SMF set the cookie to the users browser?

Reason is I am having cross domain issues on my site.. My forum uses mydomain.com/home/ while another page on my site uses otherdomain.com/page/ with SSI. Problem is otherdomain.com does not the cookie information that mydomain.com does.. So It isn't able to get user information..

I want to try to figure out how I can set the cookie to both domains or set 2 cookies (or 3 for my 3rd domain)

Otsikko: Re: Cookies
Kirjoitti: JayBachatero - marraskuu 12, 2006, 12:34:48 AP
Look in LogInOut.php.
Otsikko: Re: Cookies
Kirjoitti: SleePy - marraskuu 12, 2006, 12:08:10 IP
Thanks..

I finally was able to think of that myself.. Actually found it in Subs-Auth.php.. Which is where I found some interesting code about url aliases that smf supports? :P
Otsikko: Re: Cookies
Kirjoitti: SaikoJosh - tammikuu 24, 2007, 12:28:20 IP
@ SleePy:

I'm interested in doing exactly the same thing, what did you have to edit to get this to work? Was it a big modification?