Quantcast
Channel: West Wind Message Board Messages
Viewing all articles
Browse latest Browse all 10393

Re: Adopt previous session ID

$
0
0
Re: Adopt previous session ID
Web Connection
Re: Adopt previous session ID
Jul. 23, 2013
01:15 am
3U702P3U4Show this entire thread in new window
Gratar Image based on email address
From:FoxInCloud support
To:
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)* We're adopting the specified session IDSession.LocateSession(Session.cSessionID)Session.SetSessionId(lcSessionID)*** Force a new Cookie to be written with that value when page is built Response.cAutoSessionCookieName = "INT_USER" Response.lAutoSessionCookiePersist = .T.ENDIF


Thierry Nivelet (FoxInCloud)
Never explain, never complain (Queen Elizabeth II) - ban but and not


Viewing all articles
Browse latest Browse all 10393

Trending Articles