BrianM Posted November 28, 2008 Share Posted November 28, 2008 I've searched Google for subjects as "How to add php session id in url" and such, but hadn't had any luck with finding the answer I'm looking for. Could anyone please help by maybe showing an example of creating a session and adding the session id inside the url bar? Please and thank you! Link to comment https://forums.phpfreaks.com/topic/134596-php-session-id-in-url/ Share on other sites More sharing options...
flyhoney Posted November 28, 2008 Share Posted November 28, 2008 <?php session_start(); $session_id = session_id(); header('Location: http://www.lol.com/?sess_id='. $session_id); ?> Link to comment https://forums.phpfreaks.com/topic/134596-php-session-id-in-url/#findComment-700805 Share on other sites More sharing options...
BrianM Posted November 28, 2008 Author Share Posted November 28, 2008 Ah, thank you very much! Link to comment https://forums.phpfreaks.com/topic/134596-php-session-id-in-url/#findComment-700809 Share on other sites More sharing options...
webmaster1 Posted November 28, 2008 Share Posted November 28, 2008 If it worked close the door after you (mark as solved). Link to comment https://forums.phpfreaks.com/topic/134596-php-session-id-in-url/#findComment-700818 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.