Site integration problem with SSI.php

Started by bschhikara, July 25, 2008, 07:48:57 AM

Previous topic - Next topic

bschhikara

Hi

I have searched this board completely.. but could not find suitable solution to my very simple problem.

My forum is installed on subdomain, enabled Database sessions, subdomain independent checked and disabled local storage of cookies.

I just want to use welcome function through SSI.php... this is working fine for the subdirectories of subdomain (like... subdomain.domain.com/directory/directory).

But when I used it on other main domain pages (like.. domain/directory/page.php) .. the welcome function is not showing the details of logged user. It is showing for guest only. The session of user is not taken up. While other functions such as news, search are working fine.

i am calling SSI.php by require(path/to/ssi.php) ... I also tried with require_once(/path/to/ssi.php)... but it is not working.

I am not a php programmer.. can any one please help so that I can proceed further to create the pages. without this it will be very difficult... I am using SSI.php to integrate with other static pages.

Foxylucious

#1
I've the same question.

Is it possible to use SSI.php for the main-website when SMF is installed on a subdomain? And how? (i'm using version 1.1.5 if it makes any difference)

Forum installation on: http://forum.website.com
Main-Website on: http://www.website.com


Thanks for any help

Greetings, Foxylucious!

bschhikara

I am using SMF 2 ...

waiting for a reply from experts.

I know there is solution to this.. (like the simplemachines.org is using it on its subdomains and main site) .... but how to do that ?


Nathaniel

Hmm, most of the time your subdomain will be stored on the same server, if that is so then you should be able to include the SSI.php file from the subdomain by using the correct server file path. Also remember that often a subdomain will actually be a folder within the main directory so you just need to access it.
SMF Friend (Former Support Specialist) | SimplePortal Developer
My SMF Mods | SimplePortal

"Quis custodiet ipsos custodes?" - Who will Guard the Guards?

Please don't send me ANY support related PMs. I will just delete them.

bschhikara

yes everything is on same server... SSI.php is included ... no problem.
Problem is with session...

You can check at www.indianscience.in/aboutus/

everything is displayed as it appear in ssi_examples.php except sessions. It is always showing for guests while the user is logged on forum.

I have attached a snapshot of the features configuration on forum.

I have one test forum installed on a folder of main directory. SSI.php from that also show similar session problem when used on other folder pages of same site.

A hint is required urgently.

bschhikara

I am waiting for valuable reply...... (Why SSI.php welcome function is not working outside the main folder of forum).

please............

lordtron


VainSoftGames.com - New Design To Gaming

bschhikara

it is

www.sciforum.indianscience.in

(I also have a test forum installed at www.indianscience.in/testsciforum)..

SSI.php session i.e. welcome function is not working outside these folders (sciforum and testsciforum (checked with both SSI.php))

lordtron

Just wondering but have you tried just using:
require_once(ssi.php)



VainSoftGames.com - New Design To Gaming

bschhikara


bschhikara

you can check that by

userid: arjun
passwd: jaunti

I have currently set require_once(ssi.php) ... check this folder

www.indianscience.in/aboutus

bschhikara

is there no solution this problem.... will any body assist please.

Angelotus

see www.weeklyfun.nl, http://stars.weeklyfun.nl and the forums at http://forum.weeklyfun.nl
I use ssi for maintaining the complete website, have some other scripts installed and integrated as well.

It is not so difficult.

See your ssi_examples.php file for how to integrate.

bschhikara

thank you for reply..

I am following the complete procedure..... still there is session problem only outside the forum folder.

Am I missing something for that ( I think I have made correct configuration setting in admin section as well, please check image attached in previous post).

Angelotus

Settings are correct, but try logging out, and delete your cookies. That will help!

bschhikara

thank you...

I tried that as well... but that is not working.

Is there any method to force the session to other folders (like some code for settings.php or something in ssi.php).

Is there any problem with the host settings.

I am not getting the things resolved.

Angelotus

Have you also tried to change the cookiename in your configuration? That will force users logging out and reset the session.

bschhikara

changed the cookiename then tried.

but not resolved the things. it is same as it was earlier.



Quote from: Angelotus on July 29, 2008, 02:39:30 AM
Have you also tried to change the cookiename in your configuration? That will force users logging out and reset the session.

Angelotus

That is really strange. I made up an account on your forums. Could you manually activate it, I can't receive email now.

bschhikara


Advertisement: