Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Logoff & session_destroy


trier

Recommended Posts

Hi,

 

In logoff.php, I have a number of "tep_session_unregister()" statements. Quite often the statements are trying to unregister variables that are not registered which causes 'Undefined index' errors (the variables may be registered so they can't be just removed).

 

Rather than precede each call with "if (tep_session_is_registered())", is it possible to replace all of them with a "tep_session_destroy();"?

 

Sorry if this question is a bit simple or naive but "logoff" and "session_destroy" seems to be an obvious partnership and I don't know it there is a good reason for it not being so. I'd very much appreciate comment/opinion.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...