Yes Naga,
Exactly this is what i require. i want to retain the items in the cart
even after I purposefully logout.
I tried saving the order in preLogout and tried retrieving in
postLogout. but the issue i faced is in postLogout the profileId will
be same as the loggedin User's profileID. even all the properties of
logged in user is available in postlogout user method. getProfile()
will return the same logged in user's profile and not the new
anonymous profile. Below are the logs captured
Inside postLogout before super.postLogout
User status before postLogout: 4
User id before postLogout: 1992628
Order id before postLogout: 40008598
handleLogout: attempting to fire off Logout Event
handleLogout: session invalidated
User status after postLogout: 0
User id after postLogout: 1992628
Order id after postLogout: 40008598
Inside postLogout after super.postLogout
Here i am not able to get a new profile wherein i can copy the order
object.