I have a snippet to display a user’s login homepage. It’s just a link in the upper corner to route to their login homepage. To do this I test first if there is a value for this session variable
$_SESSION[’webUsrConfigSet’][’login_home’]
if not then I test for $_COOKIE[’WebLoginPE’] and use the cookie data to extract the user’s login homepage from a db query.
This displays the user home link properly when I return to the site. However, if I am logged in and leave the site and then return, when I click on the link I get taken to the webloginPE snippet page where I get a confirmation message saying... "welcome back." Following this the user home link works perfectly until I leave the site and return.
Is there a way to avoid this intermediate step when returning to the site as still logged in? I just want it to successfully route to the user’s home page as long as the login cookie is set.
Thanks.
I dunno how I did it, but it doesn’t do that for me.