News:

Follow us on Bluesky!

Main Menu

SSI Problems

Started by bbooker01, February 24, 2011, 07:12:27 PM

Previous topic - Next topic

bbooker01

So after lots of trial and error I have my website correctly connecting to the SSI.php and the login box appears on all of my pages, but the only problem is that it always says login never shows that Im logged in. I had both <?php ssi_welcome(); ?> and <?php ssi_login(); ?> and <?php ssi_logout(); ?> in my div box for testing purposes but it never shows me logged in when I am, anyone one know a solution to this?

Arantor

Is subdomain independent cookies set to on?
Holder of controversial views, all of which my own.


bbooker01

Well how domi know if it is on or off? Imhave no idea.  8)

Arantor

I have no idea what version of SMF you're using to tell you where to look.
Holder of controversial views, all of which my own.


bbooker01


Arantor

Admin > Configuration > Server Settings > Cookies and Session > Use subdomain independent cookies

Also, is use local cookies on?
Holder of controversial views, all of which my own.


bbooker01

Both sub domain and local were off so I turned on subdomain and I think it should work thanks!

Arantor

Yeah, turn on subdomain independent cookies, make sure to log out then back in and it should work. Let me know if it doesn't.
Holder of controversial views, all of which my own.


bbooker01

After just testing it it still does not work, it says please login or register on my main website but when it redirects me to the forum I am logged in but the login box pops up.

Arantor

And did you log out and log back in?
Holder of controversial views, all of which my own.


bbooker01


Arantor

And local cookies is off?

Is SSI.php the *very first* thing in your custom file?
Holder of controversial views, all of which my own.


bbooker01

Local Cookies is off, subdomain cookies is on. The forum is on my subdomain name, and this is on the first line of my php file <?php require_once('/home/******/public_html/forum/SSI.php'); ?>. ***** is my user name, and there are no errors it load properly the login box is there it just doesnt show up do I need to enable cookies on my main site somehow? One is forum.domain.com and other is domain.com

Arantor

Clear your browser's cookies entirely.
Holder of controversial views, all of which my own.


bbooker01

Darn for what ever reason it still is not working, I went to tools privacy advanced then removed all cookies, do you want me to link you to my forums and you can test it out yourself?

Arantor

So you removed all cookies, and then did what exactly?
Holder of controversial views, all of which my own.


bbooker01

After I removed all the cookies I went to the site and logged in to the forum via the login box on the main site, and it forwarded me to the forums, and said I was logged in but when I went back to the main site the logout button was not showing and login box was still there, it thinks I didnt login when I didn't do I need to enable cookies some how via the main site?

Arantor

Please can you attach the file you used for your custom index.php here?
Holder of controversial views, all of which my own.


bbooker01

#18
Alright here it is I am just warning you it is extremely dirty, sloppy code.

Arantor

I can't see anything wrong with it, and when I drop it in to my existing SMF installation on my local PC (obviously changing the path to SSI), it works as intended :/
Holder of controversial views, all of which my own.


Advertisement: