Anyone know how I can create an IF statement in perl that will recognize whether a user is logged in, and if they are will execute A (using session_id)...if they are not will execute B (using uid=default)?
For example:
<a href="db.cgi?do=search_results&db=jdamembers&<%if ??????%>sid=<%session_id%><%else%>uid=default<%endif%>&ls=A&col=Company_Name&sb=Company_Name">A</a>
Where the red highlighted section is the if statement (that I cannot seem to get to work) that will recognize if they are logged in or not. I have tried if session_id, ifnot cookie...but neither seems to work. The default never gets used.
Anyone know?
For example:
<a href="db.cgi?do=search_results&db=jdamembers&<%if ??????%>sid=<%session_id%><%else%>uid=default<%endif%>&ls=A&col=Company_Name&sb=Company_Name">A</a>
Where the red highlighted section is the if statement (that I cannot seem to get to work) that will recognize if they are logged in or not. I have tried if session_id, ifnot cookie...but neither seems to work. The default never gets used.
Anyone know?