Honesty Rocks! truth rules.

Php Location Header No Send Session Id ?

HOME      >>       Programming


Hi, All

I got more question on header function.

re-read the php documentation and notice an term that said as

Note: Session ID is not passed with Location header even if session.use_trans_sid is enabled. It must by passed manually using SID constant.

What that means ?

I have used two seperate script : src.php and target.php

something like this:

<< src.php >>
session_start();header('Location: /target.php');

<< target.php >>

But it does the session id sent back from server to client, then,
it gets sent to server from browser and then showed on target.php

I get very confused about how that works !!

Any where have more information about this so I go to read more.