SMF Support > SMF 2.0.x Support

SSI.php with subdomain SETTINGS

(1/2) > >>

repxl:
okey when i have in settings this ->
$boardurl = 'http://www.fresharea.net/forums';

no problem all works fine i logout , login all fine

when i use $boardurl = 'http://www.forums.fresharea.net';

ofc dont work the login and the logout shows "Unable to verify referring url. Please go back and try again."


also when i hit the logout url again but not with f5 but normally select the url and hit enter it say then the normall error like "Session verification failed. Please try logging out and back in again, and then try again."

Colin:
Try this:
$boardurl = 'http://forums.fresharea.net';

Kindred:
for a more specific explanation...   if you are using a subdomain, like forums.blah...   then you should NOT be using the WWW.
www is technically a subdomain in and of itself.

You also probably want to turn ON subdomain independent cookies

repxl:

--- Quote from: Kindred on July 03, 2012, 02:27:34 PM ---for a more specific explanation...   if you are using a subdomain, like forums.blah...   then you should NOT be using the WWW.
www is technically a subdomain in and of itself.

You also probably want to turn ON subdomain independent cookies

--- End quote ---
okey but when i use too without the www. its doing the same thing...

and what the hell is turn ON subdomain independent cookies where i can do this ? :/

repxl:
k i found it i enabled it now the sessions work i also changed the www. to just  forums.fresharea.net in settings ..

all is good but in my index.php im using
--- Code: ---<?php ssi_login('http://www.fresharea.net'); ?>
--- End code ---

and
--- Code: ---require("forums/SSI.php");
--- End code ---

this is my subdomain folder forums/SSI.php

when i login it dont redirect me to the home www.fresharea.net but redirects me to forums.fresharea.net

Navigation

[0] Message Index

[#] Next page

Go to full version