Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

session errors when hitting back


Recommended Posts

Hi there,


I have a few session problems when hitting the back button in the browser. I used the SID Killer addon, which removes the session ID from the url and stores it in a cookie.


Here are my error statements:


Parse error: parse error, unexpected '(', expecting ',' or ';' in /usr/local/slash/apache/vhosts/mydomain.nl/httpdocs/shop/includes/classes/sessions.php on line 33


Fatal error: Call to undefined function: session_start() in /usr/local/slash/apache/vhosts/mydomain.nl/httpdocs/shop/includes/functions/sessions.php on line 67


And here?s the code:


    var $use_cookies = true;

   var $cookie_lifetime = 0;

   var $cookie_path = substr(DIR_WS_SHOP, 0, -1);

   var $cookie_domain = '';

   var $gc_probability = 1;

   var $gc_maxlifetime = 0;


Wherein var $cookie_path = substr(DIR_WS_SHOP, 0, -1); is line 33, and



session_set_save_handler('_sess_open', '_sess_close', '_sess_read', '_sess_write', '_sess_destroy', '_sess_gc');


 function tep_session_start() {

   return session_start();


 function tep_session_register($variable) {

   return session_register($variable);



Wherein return session_start(); is line 67.


Please help, this bug is driving me and my visitors crazy!


Kind regards,




Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...