wwSession::SetSessionID

Overrides the current SessionID's value to a new value.

o.SetSessionID(lcID)

Return Value

nothing

Parameters

lcID
ID to set the current session entry to

Remarks

Use with care. When changing a session ID you are basically changing the way that the session is looked up. Session IDs correspond to the HTTP Cookie value, so you will have to override the cookie as well. Inside of a Web Connection request you can do the following:

      lcSessionID = "IDNew111111"
      Session.LocateSession(Session.cSessionID)
      Session.SetSessionId(lcSessionID)
      
      *** Force a new Cookie to be written with that value when page is built
      Response.cAutoSessionCookieName = Config.cCookieName
      Response.cAutoSessionCookie = loCustomer.oData.UserID
      Response.lAutoSessionCookiePersist = .T.


See also:

Class wwSession

© West Wind Technologies, 1996-2018 • Updated: 11/22/99
Comment or report problem with topic