News:

Wondering if this will always be free?  See why free is better.

Main Menu

login referals

Started by aevaris, October 29, 2010, 03:25:25 PM

Previous topic - Next topic

aevaris

Hello everyone, I am new at this and just starting up. I just upgraded to 2.0, and everything seems to be working.

However, I tried to set a referal from the login button using the code:
require_once $_SERVER['DOCUMENT_ROOT'].'/forum/SSI.php';
$_SESSION['login_url'] = 'http://mysite.com ' . $_SERVER['PHP_SELF'];
$_SESSION['logout_url'] = 'http://mysite.com' . $_SERVER['PHP_SELF'];


The logout works, however, the login does not. Any ideas?

kat

Welcome to the forum, aevaris!

When you say that the logout doesn't work, can you be a bit more specific, please?

It might help. ;)

aevaris

Well, logout works fine, it redirects to the address set with $_SESSION['logout_url'] = 'hxxp:mysite.com [nonactive]' . $_SERVER['PHP_SELF'];

However, login still redirects to the default...

Ok this is weird. I switched PC's (I was using my laptop at work when I posted originally), and when I logged in, it would direct me to hxxp:mysite.com/forum/ [nonactive] no matter which page I tried to log in on, instead of $_SESSION['login_url'] = 'hxxp:mysite.com [nonactive] ' . $_SERVER['PHP_SELF'];

However, now, it directs me appropriately to the same page the user is on as I originally desired.

Both computers are running firefox4.0b6. Think it was a cookie/session issue instead of a coding one?

kat

Cookies is one of Firefox's greatest weaknesses, for me. (One reason that I prefer Opera).

So, yeah. I think i could well be that.

Advertisement: