News:

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

Main Menu

SSI.php not recognising that a member is logged on...

Started by Tristan Perry, October 10, 2004, 07:23:36 AM

Previous topic - Next topic

Tristan Perry

Hello,
  I have set up a Karma Log on my website, I only want certain people to access it, and so I've included SSI.php into the page so I can use things like:

if( $context['user']['id'] ==  52 || $context.... )

etc To see if the member can access the page. This is working fine, except that someone who I want to be able to access the page, says he can't. To find this out what is wrong, I used:

print_r($context['user']
and when this member visited the page it showed:

QuoteArray ( [id] => 0 [is_logged] => [is_guest] => 1 [is_admin] => [is_mod] => [username] => [name] => [language] => english [email] => [messages] => 0 [unread_messages] => 0 [avatar] => Array ( ) [total_time_logged_in] => Array ( [days] => 0 [hours] => 0 [minutes] => 0 ) [popup_messages] => )

This shows that SSI isn't recognizing that he's logged in, despite the fact that I know he is,
Does anyone have a clue about why this is happening, and how to fix it? What's weird is that it's only not working with this 1 member (To my knowledge) I've got both:

Enable local storage of cookies
   and
Use subdomain independent cookies

turned off in my forums, could this be the problem?
  Any help would be appreciated,
Tau Online

Metho

Has he tried his account from multiple computers or allowed you to log in under his account from yours?

- Methonis
Joshua "Methonis" Frazer
Support Specialist
The Simple Machines Team

Tristan Perry

Quote from: Metho on October 10, 2004, 02:19:49 PM
Has he tried his account from multiple computers or allowed you to log in under his account from yours?

- Methonis
Neither as far as I know. You think that may be the problem?

Metho

Well, a lot of times when it's not recognizing a log in it's something with the way the computer/browser is configured, especially when it's only happening to one member and working with everyone else. Is a guess, he may want to try it, or have him change his password to a dummy one and give you access to his account for a minute and see if it works on yours.

- Methonis
Joshua "Methonis" Frazer
Support Specialist
The Simple Machines Team

Tristan Perry

Quote from: Metho on October 10, 2004, 02:26:31 PM
Well, a lot of times when it's not recognizing a log in it's something with the way the computer/browser is configured, especially when it's only happening to one member and working with everyone else. Is a guess, he may want to try it, or have him change his password to a dummy one and give you access to his account for a minute and see if it works on yours.

- Methonis
Update: It's now only working with 50% of people...

[Unknown]

Are you using SSI.php on separate subdomains?

If so, Use subdomain independent cookies needs to be on... and it still won't work until everyone logs out and in again.

-[Unknown]

Tristan Perry

Quote from: [Unknown] on October 10, 2004, 05:51:08 PM
Are you using SSI.php on separate subdomains?

If so, Use subdomain independent cookies needs to be on... and it still won't work until everyone logs out and in again.

-[Unknown]
Ah right, thanks  :) I've enabled it now, and I've told everyone to log out and in again  :)

Advertisement: