Forum OpenACS Q&A: Re: How to use/configure Host Node Map

Collapse
Posted by Dave Bauer on
In your login script you'd have a switch or whatever to figure out which host is the current one, and redirect to the other one.

Something like

set time [ns_time]
set token [sec_get_user_auth_token $user_id]
set hash [ns_sha1 "$user_id$time$token"]
set host "thishost.com"
ad_returnredirect -allow_full_url [export_vars -base "http://otherhost.com"; {return_url user_id time hash host}]