Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

session variables

Status
Not open for further replies.

pcsmurf

IS-IT--Management
Apr 26, 2002
47
0
0
GB
Sometimes when I first load my php page the links on the page contain session variables - something like sugar/showpage.php?pagename=contactustext?PHPSESSID=e58973a35a24c7607fc699d88881dc31 - this makes the link invalid.

a) How can I fix this ?
b) What puts it there in the first place ?

 
Look at the output from phpinfo() and ascertain the settings for your session handling. You can disable the session.use_trans_sid with set_ini for the script, however, you should consider changing the global setting if enabled.
 
session.use_trans_sid is on and session.use_only_cookies is off.

I should point out at this stage that my php server is run by a webhosting company so we do not have direct control over server settings.
 
As suggested, try to use ini_set() for those values.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top