I started using facebook php sdk with codeigniter but since then the urls on my website all have a 'PHPSESSID' added to the end.
I created a config file containing the app id and开发者_StackOverflow secret and used the following code to load the library.
$this->load->library('facebook');
Does anybody know of a workaround to this problem??
The Facebook script uses PHP native sessions. You can change this in your php.ini file:
# set
session.use_cookies = 1
# to
session.use_cookies = 0
http://www.webune.com/forums/disable-phpsessid-phpini.html
Instead of changing php.ini setting I went ahead and replaced the $_SESSION
usages in facebook.php
with Codeigniter sessions $this->session->set_userdata()
. Works for me till now. Not very foolproof I guess.
Just figured it out:
php.ini
session.use_trans_sid = 0
This will hide (make intransparent / invisible) all the PHPSESSID from your URLs.
精彩评论