[pmwiki-users] Value saved in $_SESSION is inconsistent

Peter & Melodye Bowers pbowers at pobox.com
Thu May 1 12:51:13 CDT 2008

When I started saving semi-permanent information in my session I was
prepared for all kinds of complications and a steep learning curve.  I
found, to my pleasant surprise, that all I had to do was make an assignment
to the $_SESSION[] array and it would automatically be saved from one
page-load to another.  

Time passes.

Now someone else is using my code and finding that variables saved like that
are only sometimes "sticky" and other times the assigned value disappears on
the next page-load.

Did I just get lucky in my personal testing environment and my web-site?
Are there settings that control this?  Is there some step I should be doing
besides simply assigning a value to the $_SESSION variable?  I checked and
the system with the problem does keep authorizations from one page-load to
another, so I don't think it's something as simple as not having the right
session directory or something...

Since it works fine on my system it makes it much more difficult to debug -
that's why I'm appealing to the list for any insights you can give me...


More information about the pmwiki-users mailing list