wdisp/redispatch_foreign_sessions is a SAP Parameter attribute which is used to control Redispatch requests for stateful sessions from invalid server information. This is available within R/3 SAP systems depending on the version and release level.
Below is the standard documentation available and a few details of the attributes values .
If the value of this parameter is true, the Web Dispatcher uses
stateless load balancing to try to find an alternative server destin
ation for failed stateful requests (incorrect session cookie or the
target server or logon group cannot be accessed).
This has the following advantages:
The relevant backend (AS Java, AS ABAP) returns more meaningful error
pages (such as "Log on again"). The Web Dispatcher remains transparent
for the user.
A real session failover is made possible, if the relevant server backend
is in the position to transfer external sessions
See SAP Parameter Documentation for full SAP documentation for this profile parameter.