fekaduw Posted March 25, 2007 Share Posted March 25, 2007 hello there, sessions work fine in my pages but i want to change the way the session Id is concatenated to the URL. Eg: http://localhost/mailbox_intro.php?PHPSESSID=667rn0acoll6vj7uhpubn43fn7. is there any way that the PHPSESSID could be changed by another variable? something like http://localhost/mailbox_intro.php?id=667rn0acoll6vj7uhpubn43fn7 any help is highly appreciated, thanks Link to comment https://forums.phpfreaks.com/topic/44235-how-can-i-change-the-phpsessid/ Share on other sites More sharing options...
mjlogan Posted March 25, 2007 Share Posted March 25, 2007 session_name("id"); session_start(); Link to comment https://forums.phpfreaks.com/topic/44235-how-can-i-change-the-phpsessid/#findComment-214828 Share on other sites More sharing options...
fekaduw Posted March 25, 2007 Author Share Posted March 25, 2007 i tried to put the session_name("id") both above and below the session_start(). but it doesn't work Link to comment https://forums.phpfreaks.com/topic/44235-how-can-i-change-the-phpsessid/#findComment-214830 Share on other sites More sharing options...
Orio Posted March 25, 2007 Share Posted March 25, 2007 Change in your php.ini (or create if it doesn't exists): session.name = "id" Orio. Link to comment https://forums.phpfreaks.com/topic/44235-how-can-i-change-the-phpsessid/#findComment-214833 Share on other sites More sharing options...
fekaduw Posted March 27, 2007 Author Share Posted March 27, 2007 thanks it works Link to comment https://forums.phpfreaks.com/topic/44235-how-can-i-change-the-phpsessid/#findComment-215980 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.