If this is your first visit, check our documentation. To post, register or login.
Forums / General Questions / General Questions / session_regenerate_id - what behaviors trigger a regenerate of session id?

session_regenerate_id - what behaviors trigger a regenerate of session id?

Started by boxes on 21 Jun 2012, 6:05 PM · Views: 445

Results 1 to 2 of 2
21 Jun 2012, 6:05 PM
#1
boxes avatar

boxes

New Zenner

Join Date:
Jul 2004
Posts:
37
Plugin Contributions:
0

Post #1 by boxes

how is a session_regenerate_id triggered?

what cart/user/browser behaviors occur to make this happen?

gotta write something to an external system that changes the session id of the external tool when the cart changes its session to keep both the same

thx

peace

22 Jun 2012, 4:01 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #2 by drbyte

It happens whenever zen_session_recreate() is called. And that happens whenever the user does something that requires that function to be called. You can see where that function is called by looking at the code using your favorite editor and text-search tool or the Developers Toolkit.
But if you really need to update an external system "whenever" it changes, then it really doesn't matter "what" causes the change, right? So you'll need to hack your custom code into the function.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.