session id's and included scripts



I have a login script that uses sessions. I want to pass the session
id in the URL so I have turned on the session.use_trans_sid.

After the user enters their login info they hit a submit button in a
form. This directs to a script with no output as it purley checks the
login data is true. The session id is still in the url at this point.

If the login data is ok it then uses location to redirect to another
page. When it arrives at this new page the url no longer contains the
session id. I've even tried hard coding it into the script
?PHPSESSID=$PHPSESSID with no luck.

I do include a couple of scripts at the top of my scrips. Do I need to
add the PHPSESSID to the included scripts too?

Many Thanks

Mike

.


Quantcast