Jump to content
xisto Community
Sign in to follow this  
magiccode91405241511

Php Location Header No Send Session Id ?

Recommended Posts

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 >>
print_r($_REQUEST);

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.

Thanks,
Eric,

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.