portal entry

select a category, or use search below
(searches all categories and all time range)

CF2018 External Session Storage using Redis on an AWS EC2 Server

| View in Portal
January 30, 2019 02:43:41 AM GMT
<p>In this article, I'll walk through setting up an EC2 Server on AWS and installing Redis for ColdFusion 2018 to use as session storage.</p>
<p>The post <a rel="nofollow" href="https://coldfusion.adobe.com/2019/01/cf2018-external-session-storage-using-redis-aws-ec2-server/">CF2018 External Session Storage using Redis on an AWS EC2 Server</a> appeared first on <a rel="nofollow" href="https://coldfusion.adobe.com">ColdFusion</a>.</p>
Labels: Blog, ColdFusion, Modern CFML, Showcase, modern cfml, showcase


Thanks for your article David. It's an excellent guide and I've used to setup a test Ubuntu server exactly as you've described. All is working well, however, I've noticed an issue when clearing the session variable (for logging out of an application). Previously, I was able to do the following on a logout.cfm page: <cflock timeout=10 scope="session" type="exclusive"> <cfset structclear(session)> </cflock> and the session was cleared and the user is effectively logged out. This is no longer working with the session storage on Redis instead of in memory. It executes the code ok but is no longer clearing the session variables. Any idea why that would be or how to overcome it?
Comment by jonn66137107
1623 | February 05, 2019 11:25:09 AM GMT
Aaah, no worries, I've fixed it by updating the code to: <cfset structclear(session)> <cfset sessionInvalidate()> Cheers, Jon
Comment by jonn66137107
1622 | February 05, 2019 11:49:36 AM GMT
I was just about to recommend that!   You beat me to it.<span></span>
Comment by David Byers
1624 | February 05, 2019 05:26:19 PM GMT