To me, Session.IsValidSession() makes .locateSession() and .setSessionID()In FoxInCloud, we do (roughly):
lcUserID = this.oRequest.GetCookie(Lower(m.this.cApp))this.lSession = .F.;
OR this.oSession.IsValidSession(m.lcUserID);
OR (not lBotSpider(m.this.oRequest.getBrowser()) AND this.NewSession(@m.lcUserID))
I need to be able to use the 'Continue Shopping' callback from Paypal. I planned on including the session ID in the return url in order to adopt all the properties of that session so they can avoid logging in again and can retain their shopping cart contents.
I'm a bit confused regarding how to accomplish that, and I'm floundering a bit as a result.
The following is what I have to date. It's being reset to a new session after this and I can continue to track that down, but it would be helpful for someone to pare down the following to the minimum required:
lcSessionID = Request.QueryString("S")IF !EMPTY(lcSessionID) AND Session.IsValidSession(lcSessionID)Session.LocateSession(Session.cSessionID)Session.SetSessionId(lcSessionID)
Response.cAutoSessionCookieName = "INT_USER"
Response.lAutoSessionCookiePersist = .T.ENDIF
Thierry Nivelet (FoxInCloud)
Never explain, never complain (Queen Elizabeth II) - ban but and not