Redirect a page from a remote server to another server in PHP -
we have wiki site when accessed, checks cookies see whether user authenticated. if not, page redirected authentication page outside domain. once user authenticated, authentication page posts data along cookies wiki page(index.php).
now, introducing new wiki server , want render wiki contents server instead of original wiki server. not have control on authentication server. cannot make change there. also, cannot change dns entries new server yet still being tested. option have redirect original wiki page new wiki page.
my question how redirect along cookies , posted content original index.php new site's index.php. not able retrieve cookies header. appreciated.
it's not possible read cookie set server how unsecure wouldnt be, can send data through alt post , read on auth page of course means need able change auth page
but when think of maybe set cookie domain how work im not sure, eh try
setcookie('name','value','expires','/','new domain goes here');
Comments
Post a Comment