My site uses a "guest" account and therefore needs to allow multiple simultaneous logins from different IPs. So I'm using "Session ID Only" for my Website Session Type.
Is there any good documentation about keeping preserving the Session ID string (S=d571da22a6...
) when generating internal links in templates? Through trial and error I've found that when looping through entries, the {url_title_path='group/template'}
format will output the Session ID string (thus keeping the user logged in when they click one of them), whereas {comment_url_auto_title_path}
does not.
But for the life of me though I can't figure out how to link to the home page and output the Session ID string. {site_url}
doesn't do it, and {cp_session_id}
only applies to users who have access to the control panel.
Am I missing something? Is it the expected behavior that clicking any link without the Session ID string will log the user out (or at least display the page as if the user is logged out)?