<a href="mypage.cfm">My Page</a>: works fine
<input type="button" name="Menu" value="Admin Menu"
onclick="MM_goToURL('parent','MyPage.cfm');return document.MM_returnValue">:
does not work some of the time
Does anyone have any ideas why this should happen especially since I have
other application with similar set up working fine?
P.S. My client want to keep the look (buttons) as they are and does not want
to change them to HTML links. This happnes on CFMX6.1 and CFMX7.0
Application.cfm:
<cfapplication name="Symlin" clientmanagement="Yes" sessionmanagement="Yes"
sessiontimeout="#CreateTimeSpan(0,0,20,0)#"
applicationtimeout="#CreateTimeSpan(0,12,0,0)#">
<cflock timeout=10 scope="session" type="readonly">
<cfif not IsDefined("session.UserId")>
<cflocation url="Login.cfm" addtoken="No">
</cfif>
</cflock>
Make sure you don't have multiple Application.cfc/.cfm pages in subdirectories
that may have different session timeout values.
Also, check for any code that may be removing cfid/cftoken/jsessionid cookies,
thereby, killing the session.