Zen Cart Logo
Forums / General Questions / Is this script correct to force a new user session?

Is this script correct to force a new user session?

Views: 332

Results 1 to 1 of 1
12 Feb 2012, 5:14 PM
#1
simon1066 avatar

simon1066

Totally Zenned

Join Date:
Feb 2009
Location:
UK
Posts:
1,326
Plugin Contributions:
0

Is this script correct to force a new user session?

For reasons that are complicated to explain I want to have the user end a session and create a new one when selecting a field from a drop down box.

Is this the correct code snippet to use?

 if (SESSION_RECREATE == 'True') {
      zen_session_recreate();
    }

If so then I can start to work out how to incorporate it into my <script> or <select> tags (not quite sure which,at the moment!).