Hi there
I am working on a project which when completed I’ll pass back to the ’community’ - however I have run into quite a snag.
I am using sessions but my sessions data in the form of an array is being lost "between pages" by MODx.
I know this as i have run all my code sucessfully as "static" pages.
The script is supposed to remember visitor the "choices list" as the navigate through the web pages.
These choices are then displayed so the visitor can see them accumlate using ajax.
I can connect to the sessions using startCMSSession() all is ok but when you move to a new page you loose the session data.
I know the session id number session_id() is consistant as I have output it as a debug.
I conducted one last test - I started a new session and got a new session id for it.
The choices were all perfectly remembered between pages but I had to update my "choice list" which was then displayed correctly by the ajax script that started the new session.
please can anyone suggest how to prevent the manager from loosing my sessions data between pages.
I have spent too long trying to figure this out and desperately need to move on to complete the project ASAP.
Any help greatfully received....
regards and thanks in advance