Warm tip: This article is reproduced from serverfault.com, please click

ColdFusion

发布于 2021-02-17 17:14:24

I have a session variable that is set to 60 days. But it is dropping each day.

What I have been using for code has been working for years. I have moved to a new virtual server. And my CF Administrator settings seem to all be the same. Could it be a Windows Server 2016 issue? Using ColdFusion 2016 and Windows Server 2016.

As related this code has worked forever. Still works in older server. But now on new virtual server it will not work. Thoughts?

At the login page. After successful login.

        <cfset session.allowin = "True">
        <cfset session.user_id = log.uid>

On the Application.cfm page.

        <cfapplication name="MyApp" clientmanagement="Yes"
            sessionmanagement="Yes"
            sessiontimeout="#CreateTimeSpan(61,0,0,0)#"
            applicationtimeout="#CreateTimeSpan(61,0,0,0)#">
Questioner
Merle_the_Pearl
Viewed
0
Merle_the_Pearl 2021-02-20 02:28:23

This was my bad. I had cloned a Virtual Server that rebooted every day at 2am.

So that reboot would clear all the session variable.

This is resolved now.

Thank you all for posting this and that, it led to good server setup reviews.