Results 1 to 4 of 4
  1. #1
    Join Date
    Nov 2003
    Posts
    1,155
    Plugin Contributions
    0

    Default Recreate Session - how does cart know what the new session id is?

    ZC 139h

    If recreate_session is triggered, how does the cart know what the new session id is and how to associate it with the old session id?

    In other words, what is the code "bridge" built to the new session id?

    Are there any flags or variables that are triggered that could be used in an external module to keep the shopping session straight?

    Thanks

  2. #2
    Join Date
    Jan 2004
    Posts
    66,391
    Blog Entries
    7
    Plugin Contributions
    81

    Default Re: Recreate Session - how does cart know what the new session id is?

    It simply memorizes all the existing session contents, deletes the old session id, creates a new session id, and restores all the prior session variable contents to it. Nothing special.

    If you're using an "external" service or addon that is memorizing session ids then it's probably founded on very poor logic.
    .

    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.

  3. #3
    Join Date
    Nov 2003
    Posts
    1,155
    Plugin Contributions
    0

    Default Re: Recreate Session - how does cart know what the new session id is?

    Thanks Dr.

    No, it just needs to know what the new session id is so it can keep everything straight

  4. #4
    Join Date
    Jan 2004
    Posts
    66,391
    Blog Entries
    7
    Plugin Contributions
    81

    Default Re: Recreate Session - how does cart know what the new session id is?

    Which module are you talking about? What exactly does it need to "keep straight"? Tying anything external to internal specific session id numbers is generally bad practice.
    .

    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.

 

 

Similar Threads

  1. Recreate Session vs IE8 ?
    By gaffettape in forum General Questions
    Replies: 5
    Last Post: 25 Jan 2010, 06:19 PM
  2. Recreate Session - how does it work ?
    By DogTags in forum Managing Customers and Orders
    Replies: 2
    Last Post: 6 Oct 2009, 12:52 PM
  3. Recreate Session - Same or New Session ID ?
    By DogTags in forum General Questions
    Replies: 2
    Last Post: 6 Aug 2007, 02:09 PM
  4. what is recreate session
    By TFMegatron in forum General Questions
    Replies: 5
    Last Post: 13 Jun 2006, 01:54 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR