News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

ssi_login redirect not working...

Started by ls1dreams, March 09, 2008, 01:54:05 PM

Previous topic - Next topic

ls1dreams

Hi all,

I'm trying to use SMF's login as the primary login for my site.

the ssi_login() function logs me in properly, but unfortunately does not redirect me where I want.

Here's the code I'm using:

(at top of page):

require('forum/SSI.php');


(where login form is)

<?
  $myurl = 'http://www.mydomain.com/mypage/';
  ssi_login($myurl);
  ?>


It always redirects me to the home page of the forum.

Ideas?

Kindred

go to an actual page, not a directory.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

ls1dreams

Quote from: Kindred on March 09, 2008, 08:51:45 PM
go to an actual page, not a directory.

Didn't help...  any other ideas?

Kindred

hmm...   it must be something server specific on your site... because that exact code works fine on my test site...
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

ls1dreams

Quote from: Kindred on March 10, 2008, 09:57:43 AM
hmm...   it must be something server specific on your site... because that exact code works fine on my test site...


What should I look for?  I'm not much of a server guy .... really would have no idea what to look for here.

Kindred

I'm not really sure....   usually, this is a case of a missing quote, extra character, etc...   is the page that you are redirecting to on the same domain and server?
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

ls1dreams

Quote from: Kindred on March 10, 2008, 11:57:13 AM
I'm not really sure....   usually, this is a case of a missing quote, extra character, etc...   is the page that you are redirecting to on the same domain and server?

Yes, same domain and server.

Path to forums:  http://www.mydomain.com/dir1/forum [nofollow]
Path to redirect:  http://www.mydomain.com/dir1/index.php [nofollow]

The $context variables aren't working for me either... so i'm wondering if there is something server side that could be causing these problems.

The weird part is ssi_login properly gives me a login form, so it seems SSI.php is being included just fine.

Advertisement: