• I’m making a music blog at https://www.startingtofeelit.com and I use jPlayer playlist to manage my music. I use a shortcode to add each song to my playlist and a PHP session variable (“current_index”) to keep track of the index of the song I am adding.

    I declare this session variable in my header.php to initialize it to 0, then update it every time I use my shortcode. For some reason, when I load the next page it resets the session variable to 0 again, and does not maintain the value that it should be. Is there something in the code that destroys the session? Is the header.php being called again when it loads a new page? I’m trying to keep some php session variables, php global variables, and javascript global variables alive so I can access them when the new page is loaded, but the all seem to reset to their defaults (even the php session variables).

    Any ideas on how to keep these php session variables, php global variables, and javascript global variables alive so that I can access/change them after the new page is loaded?

    https://www.ads-software.com/extend/plugins/infinite-scroll/

  • The topic ‘Seems to close my session’ is closed to new replies.