I haven't worked with Community, but it looks like it overrides glinks' authentication modules, so glinks' normal cookies won't exist when logging in through Community. Try changing this in include_common_head.html:
to
I believe Community uses the cookie name Community_Session.
Adrian
Code:
if (cookies[i].match(/^\s*<%config.user_cookie_prefix%>s=[0-9a-f]{32}\s*$/)) {Code:
if (cookies[i].match(/^\s*community_cookie_name_here=[0-9a-f]{32}\s*$/)) {Adrian