Problem with SESSIONS

Permalink
Issue with $_SESSION[] variables.

I have several .php pages, and I need to add them on site. There are two ways: 1. use iFrame (using the plugin "Dynamic iFrame") for this or 2. use php function (using the plugin "Code Blocks") include()

On those pages script process some data and gets some variables. I save this variables to the array $_SESSION[]

In case with php function include() I lose variables from array $_SESSION when I open another page on site. So, I think that CMS destroy variables from arrays after opening another page on site.
Can you help, how to store variables using include() function?

In case with iFrame everything is OK, because full page refreshing is not initiated, only iFrame part of page.

Does anyone have any idea what I can do to keep session values? I prefer to use the code include.

 
redworks replied on at Permalink Reply
Anyone? :)
Mnkras replied on at Permalink Reply
Mnkras
It should work fine, c5 doesn't clear sessions (except for its own)
TheRealSean replied on at Permalink Reply
TheRealSean
If they are not concrete pages make sure you have session_start() on the pages

This website stores cookies on your computer. These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media. To find out more about the cookies we use, see our Privacy Policy.