Skip to main content

Posts

Showing posts from January, 2011

Photo of the Day Igoogle Gadget

I have developed a new igoogle gadget that shows random photos related to nature on your igoogle home, also the photo changes when ever you refresh your igoogle home. You may also embed this gadget into your website using iframe. To try the gadget on your igoogle click on this link To embed the gadget in your website, copy and paste the below code: <iframe scrolling="no" title="Weather Forecast" frameborder="0" style="height: 420px; width:auto" src="http://www.sms4all.info/flickr/" height="420"></iframe>

[Coldfusion 9] Session is Invalid Error Exception

Session  is Invalid error message could be caused by cookies, I faced this error exception caused by cookies and I really has no clue why, anyway below is the solution for this error exception: <textarea> <!--- Application.cfm ---> <cftry> <cfapplication name="web" sessionmanagement="yes" sessiontimeout="#createtimespan(0,0,45,0)#"> <!--- Your code here ---> <cfcatch type="any"> <cfif isDefined("exception.message")>        <cfif exception.message is "Session is invalid"> <cfcontent reset="yes">              <cfset tx = structclear(cookie)> <script type="text/javascript"> window.setTimeout(redir, 100); function redir() { window.location = 'rootdirectory?reset=<cfoutput>#getTickCount()#</cfoutput>'; } </script>     <cfabort> </cfif> </cfif> </cfcatch> </cftry>