Hi,

do you have suhosin installed? If yes, turn off session encryption,
either totally or some of the parameters. In short, it will use
- remote IP address
- browser signature
- docroot

to encrypt your session values, so they can't be accessed by any other
script. I had numerous problems with this including one instance where
Docroot somehow wasn't set when using https vs http.

HTH

Jochen Daum

"There is no shortcut to anywhere worth going" - Beverly Sills

P.S.: Have you recently changed or set a password? Read this:
http://krunchd.com/goodpasswords

Automatem Ltd
Phone: 09 630 3425
Mobile: 021 567 853
Email: [email protected]
Website: www.automatem.co.nz
http://nz.linkedin.com/in/automatem
http://twitter.com/automatem



On 8 September 2011 10:38, Robert Urquhart <[email protected]> wrote:
> I have a php curler which has stumped me.
>
> Data being stored in $_SESSION  by a script in a sub-directory is not
> available to scripts in the webroot directory. It can be passed
> between and across any subdirectories of the webroot just fine (so my
> short-term solution is to move some functionality to a subdirectory
> but this is not ideal).
>
>  - the webroot scripts are correctly using the same session id.
>
>  - webroot scripts don't appear to be preserving session data beyond
> their own page load either - it doesn't appear on a refresh or on
> other pages whether also in webroot or in subdirectories
>
>  - most of the content on webroot pages is output by the exact same
> code as on subdirectory pages - the page files themselves only contain
> some flags and then an include (session_start() is down in the
> include).
>
>  I'm guessing it's some sort of scoping issue, but I've checked for
> www / not-www switches and suchlike.
>
> Anyone run into anything like this before? We recently changed servers
> - I've yet to test on other sites to see if the problem occurs there
> as well (could be a lot of work involved if it does :( ).
>
>  Robert Urquhart
>
> --
> NZ PHP Users Group: http://groups.google.com/group/nzphpug
> To post, send email to [email protected]
> To unsubscribe, send email to
> [email protected]
>

-- 
NZ PHP Users Group: http://groups.google.com/group/nzphpug
To post, send email to [email protected]
To unsubscribe, send email to
[email protected]

Reply via email to