Page 1 of 1

php session id in the get method

Posted: Wed Feb 08, 2006 1:34 pm
by nincha
why does the session id show among the get method variables? Is there a way to disable this?

Posted: Wed Feb 08, 2006 1:50 pm
by AKA Panama Jack
Try adding this...

Code: Select all

ini_set ("session.use_trans_sid","0");
Add it to the beginning of each file or if there is an include that is used in every php file add it to the beginning of the file. Might want to make sure it is executed before any output it sent to the browser.

Posted: Wed Feb 08, 2006 2:55 pm
by raghavan20
session variables can be stored in two ways. one way is, they are stored as special cookies and the other way is they are stored as URL variables. In your case, the session variables are stored as URL variables rather than cookies. Read more here